Solved

Download x509 certificate from ssl host

Posted on 2011-03-11
1
380 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
This process allows computer passwords to be managed and secured without using LAPS. This is an improvement on an existing process, enhanced to store password encrypted, instead of clear-text files within SQL
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses
Course of the Month7 days, 13 hours left to enroll

632 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