User Tools

Site Tools


snippets:openssl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
snippets:openssl [2016/09/29 13:46] allspark_cpsnippets:openssl [2025/03/06 10:20] (current) allspark
Line 1: Line 1:
- 
 # create selfsign # create selfsign
  
Line 14: Line 13:
 Run the following command to export the certificate: openssl pkcs12 -in certname.pfx -nokeys -out cert.pem Run the following command to export the certificate: openssl pkcs12 -in certname.pfx -nokeys -out cert.pem
 Run the following command to remove the passphrase from the private key: openssl rsa -in key.pem -out server.key  Run the following command to remove the passphrase from the private key: openssl rsa -in key.pem -out server.key 
 +```
 +
 +# to pkcs12
 +
 +```
 +openssl pkcs12 -export -out c.pfx -inkey privkey.pem -in cert.pem -certfile chain.pem -passout pass:<pass>
 +```
 +
 +# dhparams
 +
 +```
 +openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
 +```
 +
 +# connect to TLS port
 +
 +```
 +openssl s_client --connect <host>:<port>
 ``` ```
snippets/openssl.1475149606.txt.gz · Last modified: (external edit)