causten | 13cd0ca | 2017-09-26 11:08:47 -0500 | [diff] [blame] | 1 | #!/bin/sh |
2 | |||||
3 | PEM="/etc/ssl/certs/nginx/cert.pem" | ||||
4 | |||||
5 | if [ ! -f $PEM ]; then | ||||
6 | openssl req -x509 -sha256 -newkey rsa:2048 -keyout $PEM -out $PEM \ | ||||
7 | -days 3650 -subj "/O=openbmc-project.xyz/CN=localhost" \ | ||||
8 | -nodes | ||||
9 | fi |