| 1 | All of the certs in this directory are generated using the `generate-certs.sh` script included in this directory. |
| 2 | |
| 3 | ### PKI Structure |
| 4 | ``` |
| 5 | ┌────root──────┐ |
| 6 | │ │ |
| 7 | │ │ |
| 8 | ▼ │ |
| 9 | branch │ |
| 10 | │ │ |
| 11 | │ │ |
| 12 | │ │ |
| 13 | ▼ ▼ |
| 14 | leaf client |
| 15 | ``` |
| 16 | `generate-certs.sh` will generate 4 certificates for each key/length/digest selection, with the signing relationships that are indicated in the diagram above. This cert chain length was chosen because it matches the cert chain length used by public AWS services. |
| 17 | |
| 18 | ### Cert Naming Format |
| 19 | The folder `ecdsa_p521_sha256` indicates that certificates use a p521 ec key, and |
| 20 | that the signature uses a SHA256 hash. |
| 21 | |
| 22 | `ec_ecdsa_p384_sha384` |
| 23 | - public key: `secp384r1` |
| 24 | - signature algorithm: `ecdsa-with-SHA384` |
| 25 | ``` |
| 26 | Data: |
| 27 | Version: 3 (0x2) |
| 28 | Serial Number: |
| 29 | 41:0a:0b:67:a3:dd:fd:fe:a1:58:90:04:db:8d:0a:4e:02:49:3a:e4 |
| 30 | Signature Algorithm: ecdsa-with-SHA384 |
| 31 | Issuer: C = US, CN = branch |
| 32 | Validity |
| 33 | Not Before: Jan 22 22:05:48 2024 GMT |
| 34 | Not After : Jun 29 22:05:48 2203 GMT |
| 35 | Subject: C = US, CN = leaf |
| 36 | Subject Public Key Info: |
| 37 | Public Key Algorithm: id-ecPublicKey |
| 38 | Public-Key: (384 bit) |
| 39 | pub: |
| 40 | 04:4e:2a:7f:07:b1:af:00:55:72:2a:72:da:ae:5b: |
| 41 | dd:25:4e:d1:0d:26:a8:f1:41:6c:d6:e3:5d:2d:fc: |
| 42 | 01:23:81:ff:e7:97:ed:9f:d8:d0:67:a6:cd:0f:cf: |
| 43 | c9:43:a8:e0:69:b8:71:72:79:51:6c:24:31:37:eb: |
| 44 | 27:a2:36:ef:b5:d6:f8:0d:80:e0:58:f2:8c:db:fa: |
| 45 | 7b:e9:ec:6e:41:9f:ec:8d:52:f8:1d:2e:7d:56:8e: |
| 46 | 03:99:46:99:e8:c8:37 |
| 47 | ASN1 OID: secp384r1 |
| 48 | NIST CURVE: P-384 |
| 49 | ``` |
| 50 | |
| 51 | `rsae_pkcs_2048_sha256` |
| 52 | - public key: `rsaEncryption` |
| 53 | - 2048 bit modulus |
| 54 | - signature algorithm: `sha256WithRSAEncryption`, (RSA PKCSv1.5) |
| 55 | ``` |
| 56 | Data: |
| 57 | Version: 3 (0x2) |
| 58 | Serial Number: |
| 59 | 75:53:05:60:8a:58:f3:8a:da:3a:2d:16:df:66:21:4b:a4:71:a5:1d |
| 60 | Signature Algorithm: sha256WithRSAEncryption |
| 61 | Issuer: C = US, CN = branch |
| 62 | Validity |
| 63 | Not Before: Jan 22 22:05:50 2024 GMT |
| 64 | Not After : Jun 29 22:05:50 2203 GMT |
| 65 | Subject: C = US, CN = leaf |
| 66 | Subject Public Key Info: |
| 67 | Public Key Algorithm: rsaEncryption |
| 68 | Public-Key: (2048 bit) |
| 69 | Modulus: |
| 70 | 00:ae:d1:4c:b8:e6:c5:71:6d:c7:ff:f9:f5:49:ce: |
| 71 | <SNIP> |
| 72 | ``` |
| 73 | |
| 74 | `rsae_pss_4096_sha384` |
| 75 | - public key: `rsaEncryption` |
| 76 | - 4096 bit modulus |
| 77 | - signature algorithm: `rsassaPss` with `sha384` hash |
| 78 | ``` |
| 79 | Data: |
| 80 | Version: 3 (0x2) |
| 81 | Serial Number: |
| 82 | 19:49:db:2c:2a:8c:ca:e6:22:cc:a9:f9:95:85:a1:d0:85:2b:4e:12 |
| 83 | Signature Algorithm: rsassaPss |
| 84 | Hash Algorithm: sha384 |
| 85 | Mask Algorithm: mgf1 with sha384 |
| 86 | Salt Length: 0x30 |
| 87 | Trailer Field: 0x01 (default) |
| 88 | Issuer: C = US, CN = branch |
| 89 | Validity |
| 90 | Not Before: Jan 22 22:06:11 2024 GMT |
| 91 | Not After : Jun 29 22:06:11 2203 GMT |
| 92 | Subject: C = US, CN = leaf |
| 93 | Subject Public Key Info: |
| 94 | Public Key Algorithm: rsaEncryption |
| 95 | Public-Key: (4096 bit) |
| 96 | Modulus: |
| 97 | 00:f6:8f:a5:c5:af:db:47:87:c4:12:bc:dc:43:15: |
| 98 | 76:ea:32:de:49:38:c9:7d:3f:15:57:3e:ee:fe:23: |
| 99 | <SNIP> |
| 100 | ``` |
| 101 | |
| 102 | `rsapss_pss_2048_sha256` |
| 103 | - public key: `rsassaPss` |
| 104 | - 2048 bit modulus |
| 105 | - signature algorithm: `rsassaPss` with `sha256` hash |
| 106 | ``` |
| 107 | Data: |
| 108 | Version: 3 (0x2) |
| 109 | Serial Number: |
| 110 | 4a:5d:a2:d9:f2:16:79:dc:3d:68:9e:6e:c9:8e:60:17:71:83:df:84 |
| 111 | Signature Algorithm: rsassaPss |
| 112 | Hash Algorithm: sha256 |
| 113 | Mask Algorithm: mgf1 with sha256 |
| 114 | Salt Length: 0x20 |
| 115 | Trailer Field: 0x01 (default) |
| 116 | Issuer: C = US, CN = branch |
| 117 | Validity |
| 118 | Not Before: Jan 22 22:06:12 2024 GMT |
| 119 | Not After : Jun 29 22:06:12 2203 GMT |
| 120 | Subject: C = US, CN = leaf |
| 121 | Subject Public Key Info: |
| 122 | Public Key Algorithm: rsassaPss |
| 123 | Public-Key: (2048 bit) |
| 124 | Modulus: |
| 125 | 00:a8:38:39:08:d8:8e:54:17:fb:88:7f:ea:68:a7: |
| 126 | 3d:04:d5:53:54:c2:da:49:ff:bd:63:0c:f3:9c:09: |
| 127 | <SNIP> |
| 128 | ``` |