sandbox:ssl
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ssl [2018/02/22 19:46] – dreiggy | sandbox:ssl [2021/12/15 21:45] (current) – dreiggy | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== SSL ====== | ====== SSL ====== | ||
+ | |||
+ | Generate self-signed ssl: | ||
+ | <code bash> | ||
+ | openssl req -new -nodes -x509 -out localhost.crt -newkey rsa:4096 -keyout localhost.key -days 3650 | ||
+ | </ | ||
+ | or | ||
+ | <code bash> | ||
+ | openssl req -newkey rsa:2048 -sha256 -nodes -keyout key.pem -x509 -days 3650 -out certificate.pem | ||
+ | </ | ||
SSL certificate match key and cert: | SSL certificate match key and cert: |
sandbox/ssl.txt · Last modified: 2021/12/15 21:45 by dreiggy