Generate a self signed certificate

March 11, 2018

Generate a self signed certificate

In this short post, i will explain how to create a self signed certificate (on a Unix system with OpenSSL/LibreSSL)

Hint : 2048 is the size of the key. You can increase it but NOT lower it. This will generate the file server.key

You will have to answer the questions and it will generate a file called server.csr

Hint : 365 is the validity time for your certificate. I usually put 365 (1 year) or 3650 (10 years)

Now you will have a file called server.crt (your certificate)

To resume, now you have 3 files :

Sniffing socket

November 20, 2017
socket Unix sniff