Gitiles
Code Review
Sign In
gerrit.openbmc.org
/
stefanberger
/
openbmc
/
855904da665db1dfb373d28d2baf5dbfa3c756e9
/
.
/
meta-openbmc-machines
/
meta-openpower
/
meta-ibm
/
recipes-httpd
/
nginx
/
files
/
gen-cert.sh
blob: 480266f3b27cc55f6c32a3f246bf2f5ec97d0364 [
file
] [
log
] [
blame
]
#!/bin/sh
PEM
=
"/etc/ssl/certs/nginx/cert.pem"
if
[
!
-
f $PEM
];
then
openssl req
-
x509
-
sha256
-
newkey rsa
:
2048
-
keyout $PEM
-
out $PEM \
-
days
3650
-
subj
"/O=openbmc-project.xyz/CN=localhost"
\
-
nodes
fi