Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Download x509 certificate from ssl host

Posted on 2011-03-11
1
Medium Priority
?
383 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 2000 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

10 Questions to Ask when Buying Backup Software

Choosing the right backup solution for your organization can be a daunting task. To make the selection process easier, ask solution providers these 10 key questions.

Question has a verified solution.

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

IF you are either unfamiliar with rootkits, or want to know more about them, read on ....
How does someone stay on the right and legal side of the hacking world?
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
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…

722 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