# Self sign certificate 1 year validity, wildcard
X=mycert2
openssl req \
-x509 -nodes -days 365 \
-subj '/C=AU/ST=NSW/L=Sydney/CN=*.mydomain' \
-newkey rsa:1024 -keyout ${X}.pem -out ${X}.pem
openssl pkcs12 -export \
-passout pass:mypassword -out ${X}.pfx -in ${X}.pem
No comments:
Post a Comment