Hello everyone,

I was trying to implement self signed SSL certificates on a server. 
The commands I used to generate the certificate are:

        openssl genrsa -out server.key 1024
        openssl req -new -key server.key -x509 -out server.crt   

The whole thing works perfectly, but I have a small problem. The
certificate is valid for a very short period (around a month or so).
I would like the certificate to be valid for maybe around an year or so. 

-<snip>-

There is a -days parameter which specifies how many days until the
certificate expires.  To make your certificate last for 1 year, try this:

openssl genrsa -out server.key 1024
openssl req -new -key server.key -x509 -out server.crt -days 365

HTH,
-Leah

Reply via email to