Skip to content

Commit

Permalink
Unify max name testing to use cert files for both cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
ColtonWilley committed May 30, 2024
1 parent e620b47 commit 284dea4
Show file tree
Hide file tree
Showing 6 changed files with 290 additions and 320 deletions.
150 changes: 150 additions & 0 deletions certs/test/cert-over-max-altnames.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
[ req ]
default_bits = 2048
prompt = no
distinguished_name = dn
x509_extensions = extensions

[ dn ]
C = US
ST = Montana
L = Bozeman
O = wolfSSL Inc
OU = Engineering
CN = www.wolfssl.com

[ extensions ]
subjectAltName = @alt_names

[ alt_names ]
DNS.1 = example1.com
DNS.2 = example2.com
DNS.3 = example3.com
DNS.4 = example4.com
DNS.5 = example5.com
DNS.6 = example6.com
DNS.7 = example7.com
DNS.8 = example8.com
DNS.9 = example9.com
DNS.10 = example10.com
DNS.11 = example11.com
DNS.12 = example12.com
DNS.13 = example13.com
DNS.14 = example14.com
DNS.15 = example15.com
DNS.16 = example16.com
DNS.17 = example17.com
DNS.18 = example18.com
DNS.19 = example19.com
DNS.20 = example20.com
DNS.21 = example21.com
DNS.22 = example22.com
DNS.23 = example23.com
DNS.24 = example24.com
DNS.25 = example25.com
DNS.26 = example26.com
DNS.27 = example27.com
DNS.28 = example28.com
DNS.29 = example29.com
DNS.30 = example30.com
DNS.31 = example31.com
DNS.32 = example32.com
DNS.33 = example33.com
DNS.34 = example34.com
DNS.35 = example35.com
DNS.36 = example36.com
DNS.37 = example37.com
DNS.38 = example38.com
DNS.39 = example39.com
DNS.40 = example40.com
DNS.41 = example41.com
DNS.42 = example42.com
DNS.43 = example43.com
DNS.44 = example44.com
DNS.45 = example45.com
DNS.46 = example46.com
DNS.47 = example47.com
DNS.48 = example48.com
DNS.49 = example49.com
DNS.50 = example50.com
DNS.51 = example51.com
DNS.52 = example52.com
DNS.53 = example53.com
DNS.54 = example54.com
DNS.55 = example55.com
DNS.56 = example56.com
DNS.57 = example57.com
DNS.58 = example58.com
DNS.59 = example59.com
DNS.60 = example60.com
DNS.61 = example61.com
DNS.62 = example62.com
DNS.63 = example63.com
DNS.64 = example64.com
DNS.65 = example65.com
DNS.66 = example66.com
DNS.67 = example67.com
DNS.68 = example68.com
DNS.69 = example69.com
DNS.70 = example70.com
DNS.71 = example71.com
DNS.72 = example72.com
DNS.73 = example73.com
DNS.74 = example74.com
DNS.75 = example75.com
DNS.76 = example76.com
DNS.77 = example77.com
DNS.78 = example78.com
DNS.79 = example79.com
DNS.80 = example80.com
DNS.81 = example81.com
DNS.82 = example82.com
DNS.83 = example83.com
DNS.84 = example84.com
DNS.85 = example85.com
DNS.86 = example86.com
DNS.87 = example87.com
DNS.88 = example88.com
DNS.89 = example89.com
DNS.90 = example90.com
DNS.91 = example91.com
DNS.92 = example92.com
DNS.93 = example93.com
DNS.94 = example94.com
DNS.95 = example95.com
DNS.96 = example96.com
DNS.97 = example97.com
DNS.98 = example98.com
DNS.99 = example99.com
DNS.100 = example100.com
DNS.101 = example101.com
DNS.102 = example102.com
DNS.103 = example103.com
DNS.104 = example104.com
DNS.105 = example105.com
DNS.106 = example106.com
DNS.107 = example107.com
DNS.108 = example108.com
DNS.109 = example109.com
DNS.110 = example110.com
DNS.111 = example111.com
DNS.112 = example112.com
DNS.113 = example113.com
DNS.114 = example114.com
DNS.115 = example115.com
DNS.116 = example116.com
DNS.117 = example117.com
DNS.118 = example118.com
DNS.119 = example119.com
DNS.120 = example120.com
DNS.121 = example121.com
DNS.122 = example122.com
DNS.123 = example123.com
DNS.124 = example124.com
DNS.125 = example125.com
DNS.126 = example126.com
DNS.127 = example127.com
DNS.128 = example128.com
DNS.129 = example129.com
DNS.130 = example130.com


63 changes: 63 additions & 0 deletions certs/test/cert-over-max-altnames.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
-----BEGIN CERTIFICATE-----
MIILZjCCCk6gAwIBAgIURc0vEAYKqmZm+uhVYVYcdTDD5jIwDQYJKoZIhvcNAQEL
BQAwdzELMA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DmV4YW1wbGUxMTkuY29tgg5leGFtcGxl
MTIwLmNvbYIOZXhhbXBsZTEyMS5jb22CDmV4YW1wbGUxMjIuY29tgg5leGFtcGxl
MTIzLmNvbYIOZXhhbXBsZTEyNC5jb22CDmV4YW1wbGUxMjUuY29tgg5leGFtcGxl
MTI2LmNvbYIOZXhhbXBsZTEyNy5jb22CDmV4YW1wbGUxMjguY29tgg5leGFtcGxl
MTI5LmNvbYIOZXhhbXBsZTEzMC5jb20wHQYDVR0OBBYEFLbtWbf+CESA0Xfsii18
98iIet9AMA0GCSqGSIb3DQEBCwUAA4IBAQBCY+SvA+JFFZ1NwwEBcl5BDbTjTAgt
w+xlEK71C+KUdvFuMMftDjaESOTJXEsimz5TuYhCMmQwQJMTlaEuZnzyCetuyBwJ
eRAFopo4xRhJKQ6okJlOANPlmXehuPS+niiMMGxqBOjVyvPFZpdnj0oa6Mz/ewuP
gNlsLUUrA6YQZNGYq9rDb4r2CCtD+10xkUg1Pu+2eRHBkYP9VSJOvWTVLMj/mPwN
mh/pAxg50fl/t+m181AOu8KpIen3++54ljgo0v/O3SyO0d5zq8+vSTpjkfX3LPjH
DFyofMjOQ7lFnr7uwY9jmj//GUUg3nULmItMhcEJ3XE9ySoEwfP35OWC
-----END CERTIFICATE-----
File renamed without changes.
58 changes: 58 additions & 0 deletions certs/test/cert-over-max-nc.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
-----BEGIN CERTIFICATE-----
MIIKdzCCCV+gAwIBAgIUP2BNrIrxeGGYtoPzcrEMcF8RDbEwDQYJKoZIhvcNAQEL
BQAwdzELMAkGA1UEBhMCVVMxEDAOBgNVBAgMB01vbnRhbmExEDAOBgNVBAcMB0Jv
emVtYW4xFDASBgNVBAoMC3dvbGZTU0wgSW5jMRQwEgYDVQQLDAtFbmdpbmVlcmlu
ZzEYMBYGA1UEAwwPd3d3LndvbGZzc2wuY29tMB4XDTI0MDUzMDAxNTE0M1oXDTI0
MDYyOTAxNTE0M1owdzEL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TLYuYeolpDLXJe2Eqb3SegTp6wL4x1Bzg==
-----END CERTIFICATE-----
59 changes: 0 additions & 59 deletions certs/test/cert-too-many-name-constraints.pem

This file was deleted.

Loading

0 comments on commit 284dea4

Please sign in to comment.