linux_wiki:openssl

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
linux_wiki:openssl [2018/02/22 22:51]
billdozor
linux_wiki:openssl [2018/02/22 22:56]
billdozor [Generate Self-Signed from Existing Private Key and CSR]
Line 65: Line 65:
  
 Generate a self-signed cert and private key from scratch Generate a self-signed cert and private key from scratch
-<code bash></code>+<code bash>openssl req -newkey rsa:2048 -nodes -keyout MYSITE.key -x509 -days 365 -out MYSITE.crt</code>
  
 \\ \\
Line 71: Line 71:
  
 Generate a self-signed cert from an existing private key Generate a self-signed cert from an existing private key
-<code bash></code>+<code bash>openssl req -key MYSITE.key -new -x509 -days 365 -out MYSITE.crt</code>
  
 \\ \\
Line 77: Line 77:
  
 Generate a self-signed cert from an existing private key and existing CSR Generate a self-signed cert from an existing private key and existing CSR
-<code bash></code>+<code bash>openssl x509 -signkey MYSITE.key -in MYSITE.csr -req -days 365 -out MYSITE.crt</code>
  
 ---- ----
  • linux_wiki/openssl.txt
  • Last modified: 2019/05/25 23:50
  • (external edit)