Skip to content

Instantly share code, notes, and snippets.

@rawkode
Created January 22, 2018 20:24
Show Gist options
  • Select an option

  • Save rawkode/134b10f249d6d6cea00127eea7811c04 to your computer and use it in GitHub Desktop.

Select an option

Save rawkode/134b10f249d6d6cea00127eea7811c04 to your computer and use it in GitHub Desktop.
MEH!
root@mongodb1:/home/rawkode# openssl x509 -in /etc/mongodb-ca -text -noout
Certificate:
Data:
Version: 3 (0x2)
Serial Number:
ab:9c:46:a3:74:d5:01:f8:c2:62:67:cd:1a:91:cf:91
Signature Algorithm: ecdsa-with-SHA512
Issuer: O=Glofox, CN=mongodb.platform.glofox.com
Validity
Not Before: Jan 22 18:44:43 2018 GMT
Not After : Jan 20 18:44:43 2028 GMT
Subject: O=Glofox, CN=mongodb.platform.glofox.com
Subject Public Key Info:
Public Key Algorithm: id-ecPublicKey
Public-Key: (521 bit)
pub:
04:00:a4:a8:fe:44:06:67:d5:95:f4:97:8e:ab:e9:
48:27:7a:e0:d2:03:38:08:d3:0d:40:ab:ff:93:72:
e3:09:8d:b1:de:7d:97:2d:22:71:83:22:66:a1:51:
eb:94:66:08:c9:d7:96:48:d8:eb:28:ee:dd:e3:a0:
a2:8a:05:97:f3:7f:a0:01:07:f5:7d:4c:17:37:8e:
79:ee:31:85:72:77:59:7c:4b:91:a7:fd:07:ad:b6:
40:78:c8:b1:db:19:22:ff:d7:bc:ca:54:38:c2:11:
fa:6d:23:99:5c:b4:fc:4c:bf:26:cb:36:59:7e:a3:
93:e6:2f:c6:f2:1e:8c:cc:a0:e4:55:18:f9
ASN1 OID: secp521r1
NIST CURVE: P-521
X509v3 extensions:
X509v3 Key Usage: critical
Digital Signature
X509v3 Extended Key Usage:
TLS Web Server Authentication, TLS Web Client Authentication
X509v3 Basic Constraints: critical
CA:TRUE
X509v3 Subject Key Identifier:
61:C0:07:9E:19:DD:71:0C:62:16:67:9D:1D:9F:69:95:CA:82:89:70
Signature Algorithm: ecdsa-with-SHA512
30:81:88:02:42:01:f9:1b:e0:9d:76:ac:fe:5e:e1:94:49:08:
d6:8a:57:09:93:79:0e:23:0a:5f:8b:ae:6d:39:cc:54:a3:5a:
b2:5c:dd:e6:1f:19:a0:b7:77:42:f9:af:82:2c:e5:58:aa:0c:
4a:cc:d5:a7:66:36:fb:f4:f9:ca:39:9d:1c:0b:57:3a:6f:02:
42:00:d3:a0:98:52:e1:70:84:fc:d6:c8:37:f8:98:c7:0d:f6:
d2:88:db:07:4f:b9:4b:83:44:d2:cb:e6:84:25:8f:04:d8:b5:
d4:4f:7b:1e:a4:20:fe:3b:a4:a4:f7:1c:76:85:0a:bc:7a:e5:
17:bc:a9:fe:66:e1:9a:06:b9:5b:0c:f0:e1
root@mongodb1:/home/rawkode# openssl x509 -in /etc/mongodb-key -text -noout
Certificate:
Data:
Version: 3 (0x2)
Serial Number:
4b:36:7e:e6:df:98:2e:2d:9f:68:5e:71:1e:c7:0e:ec
Signature Algorithm: ecdsa-with-SHA512
Issuer: O=Glofox, CN=mongodb.platform.glofox.com
Validity
Not Before: Jan 22 18:44:43 2018 GMT
Not After : Jan 20 18:44:43 2028 GMT
Subject: O=Glofox, CN=mongodb1.platform.glofox.com
Subject Public Key Info:
Public Key Algorithm: id-ecPublicKey
Public-Key: (521 bit)
pub:
04:01:45:45:38:c5:eb:c4:78:69:aa:af:bd:43:67:
24:27:10:d0:34:32:4a:af:c5:d2:25:14:0b:a8:64:
4f:b2:25:eb:9c:b6:13:38:2f:ef:47:12:a2:25:ef:
a6:c2:e5:de:0a:78:7c:0a:d8:90:66:22:65:d2:9c:
d9:08:ad:58:0f:36:21:01:d1:46:f9:d9:6d:c3:0c:
70:b9:92:8f:34:67:fe:40:59:79:dd:4c:36:89:8c:
be:07:f1:9a:87:35:25:29:47:35:85:0b:6d:e6:7a:
f8:5f:46:bd:30:a4:1f:62:e8:4b:80:d4:c3:a3:bc:
31:70:4c:d5:c0:5f:9d:14:2a:4b:4d:dd:e3
ASN1 OID: secp521r1
NIST CURVE: P-521
X509v3 extensions:
X509v3 Key Usage: critical
Digital Signature
X509v3 Extended Key Usage:
TLS Web Server Authentication, TLS Web Client Authentication
X509v3 Basic Constraints: critical
CA:FALSE
X509v3 Authority Key Identifier:
keyid:61:C0:07:9E:19:DD:71:0C:62:16:67:9D:1D:9F:69:95:CA:82:89:70
X509v3 Subject Alternative Name:
DNS:mongodb1.platform.glofox.com., IP Address:35.205.164.8
Signature Algorithm: ecdsa-with-SHA512
30:81:87:02:42:00:af:1e:cb:db:a3:67:44:aa:c2:08:08:d1:
da:94:8e:31:e5:79:4f:77:72:35:ab:dd:73:18:da:6b:fd:21:
97:f9:1d:e3:d8:41:05:15:b5:06:eb:1b:bf:bf:21:10:9e:1b:
95:33:9e:b8:87:c3:24:54:c6:8a:a7:7d:e1:79:ab:0a:29:02:
41:75:10:d8:37:06:63:8b:8d:c2:69:38:84:ac:f1:cd:5d:f2:
c9:80:65:c3:df:e6:58:63:0f:62:12:27:44:2d:89:c4:09:04:
bc:66:51:18:0e:a3:37:64:fd:fb:ce:89:aa:30:2f:4d:40:39:
30:4b:dd:0c:b8:e3:15:23:5b:55:93:27
root@mongodb2:/home/rawkode# openssl x509 -in /etc/mongodb-key -text -noout
Certificate:
Data:
Version: 3 (0x2)
Serial Number:
e9:54:1e:15:ff:35:91:9b:98:b5:d6:73:93:97:4d:ca
Signature Algorithm: ecdsa-with-SHA512
Issuer: O=Glofox, CN=mongodb.platform.glofox.com
Validity
Not Before: Jan 22 18:44:43 2018 GMT
Not After : Jan 20 18:44:43 2028 GMT
Subject: O=Glofox, CN=mongodb2.platform.glofox.com
Subject Public Key Info:
Public Key Algorithm: id-ecPublicKey
Public-Key: (521 bit)
pub:
04:01:0e:2d:cd:d2:52:c0:da:6f:6e:11:77:23:46:
5e:14:5d:70:f1:82:b0:b5:27:e5:00:3f:9c:0d:d5:
5a:f1:e9:43:c7:4d:1d:30:5e:94:c1:a5:4b:5d:84:
80:1e:f5:3a:b7:95:ea:aa:0b:04:7e:4a:63:f9:a0:
ee:3d:a4:d9:e7:0e:1b:00:5c:c8:92:8c:89:e1:27:
56:8a:cf:c1:47:6c:41:58:f3:98:a5:c3:b1:ce:f5:
af:97:1a:3e:31:9c:b7:40:68:98:04:f0:6d:a3:cd:
80:f0:56:56:6d:d2:36:74:36:d3:52:91:23:f4:ba:
88:fb:f7:f2:8e:df:c9:9b:57:0f:9b:77:94
ASN1 OID: secp521r1
NIST CURVE: P-521
X509v3 extensions:
X509v3 Key Usage: critical
Digital Signature
X509v3 Extended Key Usage:
TLS Web Server Authentication, TLS Web Client Authentication
X509v3 Basic Constraints: critical
CA:FALSE
X509v3 Authority Key Identifier:
keyid:61:C0:07:9E:19:DD:71:0C:62:16:67:9D:1D:9F:69:95:CA:82:89:70
X509v3 Subject Alternative Name:
DNS:mongodb2.platform.glofox.com., IP Address:35.197.206.22
Signature Algorithm: ecdsa-with-SHA512
30:81:88:02:42:00:c3:fe:51:46:59:75:83:ea:0a:63:65:60:
f3:fa:31:5e:ea:04:ff:64:d5:35:be:6b:86:0f:b4:b4:83:76:
40:9d:19:d0:3b:cf:c7:b4:7e:62:b3:f9:b7:25:18:4f:48:43:
6c:6d:05:4f:10:00:b8:a1:c9:e4:68:43:a5:03:74:e5:56:02:
42:01:0e:66:49:e2:54:9b:c5:ba:2b:52:2a:12:28:0a:9c:65:
b0:55:86:7b:da:6a:51:4b:f3:ae:8f:0f:1d:d7:f4:29:4d:2a:
5b:18:5f:2f:00:40:04:cd:d2:e8:dc:a1:d4:7e:09:7d:9c:de:
63:2e:57:90:ee:54:a3:96:a0:2d:50:20:9f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment