Test-server fixtures (tests only; these keys protect nothing)
Made once on 2026-11-11 with OpenSSL 3.0.13 (Ubuntu 24.04 package) as a fixture generator. OpenSSL is not part of omtls and never runs in its gate; these files are the output, kept so every run uses the same certificates. The private keys here are test keys published on purpose; never use them for anything else.
| File | What | sha256 |
|---|---|---|
root.pem, root.der | test root CA, RSA-2048, CN "omtls test root", CA:true, keyCertSign | 3c27120b253142e55a913aeda7f623e7a0b6c684d45ec0a45cf046bf89c47837 (pem), c62e4a3644d2d687b1c17e0d7838a39ecb8fb84e91637913ba7878e63fe6e3d0 (der) |
leaf.key, leaf-key.txt | the leaf RSA-2048 key (PEM, and openssl rsa -text -noout, which tests/srv/tlssrv.om reads) | 7192a53d29edeebb902642f02d875044c69f3b0a4fbf31e51431d424cc458fde, b6ad8c5ebce1aad908dc17038930664fdad4fc4aef1c537d52a152e39374a0bd |
leaf-good.der / leaf-good.pem | leaf for mail.test and *.mail.test, 2026-01-01..2036-01-01, signed by the root (sha256WithRSAEncryption) | 25ec9d7335be8131742823c4807777ad7a934657c088acaa08f9c9ef0fb1279e / 48214196776bfe1d8bf74c901beb480ffe78f35685f680978147add0ccd09d8d |
leaf-other.der | same key, SAN only other.test (wrong-name case) | 1a60d4224bac0e6ecaedcc7fe0c01ac17c23c17da3f02115c67143e165523efb |
leaf-expired.der | same key and names, 2020-01-01..2021-01-01 (expired case) | 06ceab0eecb1ec8517f1fef44e90263e06f03937330c82dc97ecc505d13c28cd |
untrusted-root.pem, leaf-untrusted.der | a second root that is not in the trust store, and a mail.test leaf it signed | bda702177c5f1f04465e556cf7fa78b88550df991eaae2179ce391307014ffbd, fc161c20e6a0b060dff852c436e80dc2781541ad4d33c2d2306967aa64bc07fa |
ec-root.pem | test root, P-384, ecdsa-with-SHA384 | f3bf24686cab345a3bd390d4d315d3679726ce4b08d861e48511fee656886408 |
ec-leaf.pem, ec-leaf.key | leaf for mail.test, P-256 key, signed by the P-384 root with ecdsa-with-SHA384 | 75abbaa87df6119cc7e2e9a6674281516ceb3012ed267da804f9b03b569afcc4, 4b78c4e116bd8bd9aa5b12de8bc3690aa5b46604dddefa550ca9f875d03f0b06 |
roots-both.pem | root.pem followed by ec-root.pem (the trust store of the interop test) | e61c0d94f2d4f3cbba78ddd4ebf1c57dbc6bb7908907bcbab6e99e29533c8961 |
Commands (bash; $T a temporary directory holding the CA keys, deleted afterwards, and ca.cnf an
openssl ca configuration with sections leaf (CA:false, digitalSignature, serverAuth,
SAN DNS:mail.test,DNS:*.mail.test) and leafother (same with SAN DNS:other.test)):
openssl genrsa -out $T/ca.key 2048
openssl req -x509 -new -key $T/ca.key -subj "/CN=omtls test root" -days 7300 -sha256 \
-addext "basicConstraints=critical,CA:true" -addext "keyUsage=critical,keyCertSign,cRLSign" -out root.pem
openssl genrsa -out $T/bad.key 2048
openssl req -x509 -new -key $T/bad.key -subj "/CN=omtls untrusted root" -days 7300 -sha256 \
-addext "basicConstraints=critical,CA:true" -addext "keyUsage=critical,keyCertSign,cRLSign" -out untrusted-root.pem
openssl genrsa -out leaf.key 2048
openssl req -new -key leaf.key -subj "/CN=mail.test" -out $T/leaf.csr
openssl ca -batch -config $T/ca.cnf -cert root.pem -keyfile $T/ca.key -extensions leaf \
-startdate 20260101000000Z -enddate 20360101000000Z -in $T/leaf.csr -out $T/good.pem # and other / expired
openssl ca ... -cert untrusted-root.pem -keyfile $T/bad.key ... # untrusted
openssl x509 -in $T/NAME.pem -outform DER -out leaf-NAME.der
openssl rsa -in leaf.key -text -noout > leaf-key.txt
openssl ecparam -name secp384r1 -genkey -noout -out $T/ecroot.key
openssl req -x509 -new -key $T/ecroot.key -subj "/CN=omtls test EC root" -days 7300 -sha384 ... -out ec-root.pem
openssl ecparam -name prime256v1 -genkey -noout -out ec-leaf.key
openssl x509 -req -in $T/l.csr -CA ec-root.pem -CAkey $T/ecroot.key -days 3650 -sha384 -extfile $T/ext -out ec-leaf.pem