Solved

Download x509 certificate from ssl host

Posted on 2011-03-11
1
366 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SSH over http/https 8 124
Document that shows Russian Security Threats 1 44
Outbound Connection to known malware 4 41
Orphaned SIDs on shared folders 3 21
Ensuring effective and secure communication in the age of healthcare BYOD.
As technology users and professionals, we’re always learning. Our universal interest in advancing our knowledge of the trade is unmatched by most industries. It’s a curiosity that makes sense, given the climate of change. Within that, there lies a…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
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 …

773 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