Download SSL server certificate with opsnessl

openssl s_client -connect > /tmp/
Useful when we need to create new certificate for site when current one is near expiry. This downloaded cert can be used to provide organisational data directly to new cert. using below command. e.g. openssl x509 -x509toreq -in /tmp/ -out -signkey
Sample Output
openssl x509 -in /tmp/ -noout -startdate -enddate
notBefore=May 03 18:06:47 2012 GMT
notAfter=May 02 17:28:01 2013 GMT

By: rockon
2012-05-04 06:15:27

What Others Think

Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work.
msjennyjhonson · 53 weeks and 1 day ago
avideh · 19 weeks and 2 days ago
hair transplant turkey hair transplant istanbul get a cheap hair transplant in istanbul
hairtransplant · 16 weeks and 6 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: