Is there any tool available that verifies whether it's a PGP, x.509, etc. certificate? I know that I can view the details of installed certificates via the web browser (IE, FireFox, ...) and the Mircrosoft Management Console (MMC), but does a certificate version of V3 indicates that it's a x.509 type. (The latest version of x.509 is version 3)
Asked
Active
Viewed 903 times
0
-
PGP keys are not certificates and they are not available via MMC or web browser settings. Also they are almost never used in SSL/TLS. So whatever you usually see is an X.509 certificate. Now, version 3 is one of versions of X.509 certificate, and vast majority of X.509 certificates are of version 3. So your question doesn't make much sense - in 99,(9) % of cases you will deal only with X.509 certificates. – Eugene Mayevski 'Callback May 24 '13 at 16:59
-
I see, it's really seldom that another certificate than x.509 is used as a server certificate. But in case of, how can I find out the type? – My-Name-Is May 24 '13 at 17:36
-
1Load it with some code which loads only X.509 certificates and handle the error. – Eugene Mayevski 'Callback May 24 '13 at 18:50
-
Is it likely that with an android https client an error: `javax.net.ssl.SSLException: Connection closed by peer` occurs? – My-Name-Is May 24 '13 at 19:14
-
There exist plenty of other reasons for such errors. And the wrong certificate type is the *last* of them. – Eugene Mayevski 'Callback May 25 '13 at 05:56
1 Answers
0
Regarding to Eugene Mayevski 'EldoS Corp suggestion, an implementation of a X509TrustManager
can do the job. You will find such an implementation within this answer.

Community
- 1
- 1

My-Name-Is
- 4,814
- 10
- 44
- 84