Solved

Download x509 certificate from ssl host

Posted on 2011-03-11
1
364 Views
Last Modified: 2012-05-11
Hi,

Is there any tool with i can put host params like ip and port and it downloads cert file on my computer?
0
Comment
Question by:lavitz
1 Comment
 
LVL 33

Accepted Solution

by:
Dave Howe earned 500 total points
ID: 35108109
yes, several :)

openssl program with the s_client parameter can pull certs from a remote port. try for example:

openssl s_client  -connect www.google.com:443

and cut and paste the section between:
-----BEGIN CERTIFICATE-----
and
-----END CERTIFICATE-----
(including those two lines) into a file called cert.cer (or whatever.cer)

ditto, you can use
gnutls-cli --print-cert -p 443 www.google.com

There is no benefit to using gnutls in this case, but if you are (for example) wanting to get a cert from a mail server that requires you to type "STARTTLS" first, it is invaluable.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Phishing is at the top of most security top 10 efforts you should be pursuing in 2016 and beyond. If you don't have phishing incorporated into your Security Awareness Program yet, now is the time. Phishers, and the scams they use, are only going to …
This story has been written with permission from the scammed victim, a valued client of mine – identity protected by request.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now