Output:
(see phpseclib: X.509: Decoder to try phpseclib's X.509 decoder with your own certificates)
$cert
:
- tbsCertificate
- version
- serialNumber
- 105827261859531100510423749949966875981
- signature
- issuer
- rdnSequence
- 0
- 1
- 0
- type
- value
- printableString
- Thawte Consulting (Pty) Ltd.
- 2
- validity
- notBefore
- utcTime
- Wed, 26 Oct 11 00:00:00 +0000
- notAfter
- utcTime
- Mon, 30 Sep 13 23:59:59 +0000
- subject
- rdnSequence
- 0
- 1
- 0
- type
- id-at-stateOrProvinceName
- value
- 2
- 3
- 4
- subjectPublicKeyInfo
- algorithm
- subjectPublicKey
- extensions
- 0
- 1
- extnId
- id-ce-cRLDistributionPoints
- critical
- extnValue
- 0
- distributionPoint
- fullName
- 0
- uniformResourceIdentifier
- http://crl.thawte.com/ThawteSGCCA.crl
- 2
- 3
- extnId
- id-pe-authorityInfoAccess
- critical
- extnValue
- 0
- accessMethod
- accessLocation
- uniformResourceIdentifier
- 1
- accessMethod
- accessLocation
- uniformResourceIdentifier
- http://www.thawte.com/repository/Thawte_SGC_CA.crt
- signatureAlgorithm
- signature
$dn
:
- rdnSequence
- 0
- 1
- 0
- type
- id-at-stateOrProvinceName
- value
- 2
- 3
- 4
C=US, ST=California, L=Mountain View, O=Google Inc, CN=www.google.com
C=ZA, O=Thawte Consulting (Pty) Ltd., CN=Thawte SGC CA
-----BEGIN PUBLIC KEY-----
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDetyZDppmFzTinFQm5zw/Jw1WM
iO6MjSgnJEsqXqDYFvphGEvPbWCA0zVAMnLAjxLY5U6PubL22RVeWoYxo7qGqmvI
2XGMzM0nEx6dQl049qes7/pi8xiB1CRGfwF3fMYqiRSZu5g5HagZ+zkARH0blGp4
LWmtwHos+tDaIBKY0wIDAQAB
-----END PUBLIC KEY-----
$dn
:
- rdnSequence
- 0
- 1
- 0
- type
- value
- printableString
- Thawte Consulting (Pty) Ltd.
- 2
Notes:
An array is returned because each distinguished name property can (in theory) have multiple values
Valid property names are enumerated upon at Distinguished Property Names.