/ Published in: Java
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
openssl genrsa -des3 -out my-cert.key 2048 openssl req -new -key my-cert.key -out my-cert.csr copy my-cert.key my-cert.key.orig openssl rsa -in my-cert.key.orig -out my-cert.key openssl x509 -req -days 3650 -in my-cert.csr -signkey my-cert.key -out my-cert.crt openssl pkcs8 -topk8 -nocrypt -in my-cert.key -inform PEM -out my-cert-key.der -outform DER openssl x509 -in my-cert.crt -inform PEM -out my-cert-crt.der -outform DER openssl pkcs12 -export -in my-cert.crt -inkey my-cert.key -out my-cert.p12 -name "My Certificate"