Differences
This shows you the differences between two versions of the page.
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 bash>openssl req -newkey rsa:2048 -nodes -keyout MYSITE.key -x509 -days 365 -out MYSITE.crt</ |
\\ | \\ | ||
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 bash>openssl req -key MYSITE.key -new -x509 -days 365 -out MYSITE.crt</ |
\\ | \\ | ||
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 bash>openssl x509 -signkey MYSITE.key -in MYSITE.csr -req -days 365 -out MYSITE.crt</ |
---- | ---- |