2016-04-13

If you were using OpenSSL, you can print out the entire contents of a certificate. If you load an X.509 (SSL/TLS) certificate in Scala or Java, you can get specific fields out of the JVM provided libraries, but I find it’s a little confusing to figure out which fields you’re looking for sometimes. Conveniently you can toString the certificate and get the certificate information.

Here’s an example (this shows the root, intermediate, and final certificates):

Here’s an example of the sort of thing you get:

If you want a good book on Scala, take a look at Programming Scala (I'm currently reading through this).

The post Scala/Java: print out entire SSL certificate without OpenSSL appeared first on Gary Sieling.

Show more