howtos:view_the_contents_of_a_certificate
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | howtos:view_the_contents_of_a_certificate [02/12/2018 21:34] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | Once you have a certificate, | ||
+ | < | ||
+ | -----BEGIN CERTIFICATE----- | ||
+ | MIID1zCCA0CgAwIBAgIJAPznkOa+zeeLMA0GCSqGSIb3DQEBBQUAMIGkMQswCQYD | ||
+ | VQQGEwJVUzERMA8GA1UECBMISWxsaW5vaXMxDzANBgNVBAcTBlVyYmFuYTENMAsG | ||
+ | A1UEChMETkNTQTEjMCEGA1UECxMaU2VjdXJpdHkgUmVzZWFyY2ggRGl2aXNpb24x | ||
+ | GjAYBgNVBAMTEXd3dy5uY3NhLnVpdWMuZWR1MSEwHwYJKoZIhvcNAQkBFhJyb290 | ||
+ | QG5jYXMudWl1Yy5lZHUwHhcNMDYwMzAxMTkzMDMxWhcNMDcwMzAxMTkzMDMxWjCB | ||
+ | pDELMAkGA1UEBhMCVVMxETAPBgNVBAgTCElsbGlub2lzMQ8wDQYDVQQHEwZVcmJh | ||
+ | bmExDTALBgNVBAoTBE5DU0ExIzAhBgNVBAsTGlNlY3VyaXR5IFJlc2VhcmNoIERp | ||
+ | dmlzaW9uMRowGAYDVQQDExF3d3cubmNzYS51aXVjLmVkdTEhMB8GCSqGSIb3DQEJ | ||
+ | ARYScm9vdEBuY2FzLnVpdWMuZWR1MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKB | ||
+ | gQCy8/ | ||
+ | 50FsgFoMn4d0qhkBb6JwczJtJRPphZIvXTi0rrOzZpe0yTF17NWcc5XXn9M8MbR2 | ||
+ | jS97pjJ2AyclvOgGN/ | ||
+ | HQYDVR0OBBYEFA9U2p42HR64xIK3uK9TqsuBYkorMIHZBgNVHSMEgdEwgc6AFA9U | ||
+ | 2p42HR64xIK3uK9TqsuBYkoroYGqpIGnMIGkMQswCQYDVQQGEwJVUzERMA8GA1UE | ||
+ | CBMISWxsaW5vaXMxDzANBgNVBAcTBlVyYmFuYTENMAsGA1UEChMETkNTQTEjMCEG | ||
+ | A1UECxMaU2VjdXJpdHkgUmVzZWFyY2ggRGl2aXNpb24xGjAYBgNVBAMTEXd3dy5u | ||
+ | Y3NhLnVpdWMuZWR1MSEwHwYJKoZIhvcNAQkBFhJyb290QG5jYXMudWl1Yy5lZHWC | ||
+ | CQD855Dmvs3nizAMBgNVHRMEBTADAQH/ | ||
+ | oMVFtzp52pMZevxov9HyJNpuWHOP7y7WHmuYzigDy5vOqJgPki3w3hkdprIKKIb5 | ||
+ | 7UPwfEZxrW4WwklWllcYV2/ | ||
+ | HtceiR1JeNNVHL+Y53cXbP6qKh0TYn8xVQH3 | ||
+ | -----END CERTIFICATE----- | ||
+ | </ | ||
+ | |||
+ | If you want to see the actual entries for this file, you can view the contents as text. Here's is a typical openssl command and the resulting output: | ||
+ | |||
+ | > openssl x509 -text -noout -in hostcert.pem | ||
+ | Certificate: | ||
+ | Data: | ||
+ | Version: 3 (0x2) | ||
+ | Serial Number: | ||
+ | fc: | ||
+ | Signature Algorithm: sha1WithRSAEncryption | ||
+ | Issuer: C=US, ST=Illinois, | ||
+ | CN=www.ncsa.uiuc.edu/ | ||
+ | Validity | ||
+ | Not Before: Mar 1 19:30:31 2006 GMT | ||
+ | Not After : Mar 1 19:30:31 2007 GMT | ||
+ | Subject: C=US, ST=Illinois, | ||
+ | | ||
+ | Subject Public Key Info: | ||
+ | Public Key Algorithm: rsaEncryption | ||
+ | RSA Public Key: (1024 bit) | ||
+ | Modulus (1024 bit): | ||
+ | 00: | ||
+ | bc: | ||
+ | 2a: | ||
+ | 33: | ||
+ | a2: | ||
+ | b3: | ||
+ | d3: | ||
+ | e8: | ||
+ | be: | ||
+ | Exponent: 65537 (0x10001) | ||
+ | X509v3 extensions: | ||
+ | X509v3 Subject Key Identifier: | ||
+ | 0F: | ||
+ | X509v3 Authority Key Identifier: | ||
+ | keyid: | ||
+ | DirName:/ | ||
+ | CN=www.ncsa.uiuc.edu/ | ||
+ | serial: | ||
+ | X509v3 Basic Constraints: | ||
+ | CA:TRUE | ||
+ | Signature Algorithm: sha1WithRSAEncryption | ||
+ | 07: | ||
+ | d1: | ||
+ | 9b: | ||
+ | 43: | ||
+ | 2b: | ||
+ | 00: | ||
+ | d3: | ||
+ | 01:f7 | ||
+ | > | ||
+ | |||
+ | Here's an explanation of the command line options: | ||
+ | |||
+ | * -text - view the contents of the certificate as plain text. | ||
+ | * -noout - do not output the PEM-encoded version of the certificate. | ||
+ | * -in hostcert.pem - read in the certificate from the file hostcert.pem. | ||
+ | |||
+ | |||
howtos/view_the_contents_of_a_certificate.txt · Last modified: 02/12/2018 21:34 by 127.0.0.1