Openssl
From Attie's Wiki
(Difference between revisions)
(Created page with "==Make a certificate== <source lang="bash"> # create a self-signed (insecure,unencrypted) certificate openssl req -x509 -nodes -days 365 \ -newkey rsa:1024 -keyout mycert.pe...") |
m |
||
Line 8: | Line 8: | ||
==Command line server== | ==Command line server== | ||
<source lang="bash"> | <source lang="bash"> | ||
− | openssl s_server -cert mycert.pem | + | openssl s_server -cert mycert.pem -accept 443 |
</source> | </source> | ||
==Command line client== | ==Command line client== | ||
<source lang="bash"> | <source lang="bash"> | ||
− | openssl s_client -connect localhost: | + | openssl s_client -connect localhost:443 |
</source> | </source> | ||
+ | |||
+ | Tip: Use the <code>-quiet</code> option to get rid of all the garbage |
Latest revision as of 22:29, 16 September 2012
[edit] Make a certificate
# create a self-signed (insecure,unencrypted) certificate openssl req -x509 -nodes -days 365 \ -newkey rsa:1024 -keyout mycert.pem -out mycert.pem
[edit] Command line server
openssl s_server -cert mycert.pem -accept 443
[edit] Command line client
openssl s_client -connect localhost:443
Tip: Use the -quiet
option to get rid of all the garbage