I'ld like to analyze the certificate of a given url and get some details of it. Do you know any ways to do this? A command-line tool can be something like downloadSSLCert https://my.funny.url/ > certFile
and then analyzing it for e.g. the fingerprint of the cert. It can be a command line utility, a C/C++/Objective-C or Java code and will be used on osx >= 10.5
Java – Analyze SSL certificate programmatically or via commandline
c++javaobjective-cssl
Related Question
- Google-chrome – Getting Chrome to accept self-signed localhost certificate
- Java – Resolving javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed Error
- How to generate a self-signed SSL certificate using OpenSSL
- Java Keytool error after importing certificate , “keytool error: java.io.FileNotFoundException & Access Denied”
- Java – Command-line Tool to find Java Heap Size and Memory Used (Linux)
- Python – pip install fails with “connection error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:598)”
Best Solution
You can make an SSL connection from the command line thus:
The output will contain the X.509 cert in base64 encoding.
To view further details,
If you only want the fingerprint, omit the "
-text
" flag and add "-out /dev/null
".