omtls
omtls: a TLS 1.3 client (RFC 8446) written fresh in seeded Omega, for mailhand. Not audited by a cryptographer. Free (Apache-2.0).
Brought by drakestapleton
omtls / tests / fixtures / srv / MAKE.md
| 1 | # Test-server fixtures (tests only; these keys protect nothing) |
| 2 | |
| 3 | Made once on 2026-11-11 with OpenSSL 3.0.13 (Ubuntu 24.04 package) as a fixture generator. OpenSSL is not part |
| 4 | of omtls and never runs in its gate; these files are the output, kept so every run uses the same certificates. |
| 5 | The private keys here are test keys published on purpose; never use them for anything else. |
| 6 | |
| 7 | | File | What | sha256 | |
| 8 | |---|---|---| |
| 9 | | `root.pem`, `root.der` | test root CA, RSA-2048, CN "omtls test root", CA:true, keyCertSign | 3c27120b253142e55a913aeda7f623e7a0b6c684d45ec0a45cf046bf89c47837 (pem), c62e4a3644d2d687b1c17e0d7838a39ecb8fb84e91637913ba7878e63fe6e3d0 (der) | |
| 10 | | `leaf.key`, `leaf-key.txt` | the leaf RSA-2048 key (PEM, and `openssl rsa -text -noout`, which tests/srv/tlssrv.om reads) | 7192a53d29edeebb902642f02d875044c69f3b0a4fbf31e51431d424cc458fde, b6ad8c5ebce1aad908dc17038930664fdad4fc4aef1c537d52a152e39374a0bd | |
| 11 | | `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 | |
| 12 | | `leaf-other.der` | same key, SAN only other.test (wrong-name case) | 1a60d4224bac0e6ecaedcc7fe0c01ac17c23c17da3f02115c67143e165523efb | |
| 13 | | `leaf-expired.der` | same key and names, 2020-01-01..2021-01-01 (expired case) | 06ceab0eecb1ec8517f1fef44e90263e06f03937330c82dc97ecc505d13c28cd | |
| 14 | | `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 | |
| 15 | | `ec-root.pem` | test root, P-384, ecdsa-with-SHA384 | f3bf24686cab345a3bd390d4d315d3679726ce4b08d861e48511fee656886408 | |
| 16 | | `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 | |
| 17 | | `roots-both.pem` | `root.pem` followed by `ec-root.pem` (the trust store of the interop test) | e61c0d94f2d4f3cbba78ddd4ebf1c57dbc6bb7908907bcbab6e99e29533c8961 | |
| 18 | |
| 19 | Commands (bash; `$T` a temporary directory holding the CA keys, deleted afterwards, and `ca.cnf` an |
| 20 | `openssl ca` configuration with sections `leaf` (CA:false, digitalSignature, serverAuth, |
| 21 | SAN DNS:mail.test,DNS:*.mail.test) and `leafother` (same with SAN DNS:other.test)): |
| 22 | |
| 23 | ``` |
| 24 | openssl genrsa -out $T/ca.key 2048 |
| 25 | openssl req -x509 -new -key $T/ca.key -subj "/CN=omtls test root" -days 7300 -sha256 \ |
| 26 | -addext "basicConstraints=critical,CA:true" -addext "keyUsage=critical,keyCertSign,cRLSign" -out root.pem |
| 27 | openssl genrsa -out $T/bad.key 2048 |
| 28 | openssl req -x509 -new -key $T/bad.key -subj "/CN=omtls untrusted root" -days 7300 -sha256 \ |
| 29 | -addext "basicConstraints=critical,CA:true" -addext "keyUsage=critical,keyCertSign,cRLSign" -out untrusted-root.pem |
| 30 | openssl genrsa -out leaf.key 2048 |
| 31 | openssl req -new -key leaf.key -subj "/CN=mail.test" -out $T/leaf.csr |
| 32 | openssl ca -batch -config $T/ca.cnf -cert root.pem -keyfile $T/ca.key -extensions leaf \ |
| 33 | -startdate 20260101000000Z -enddate 20360101000000Z -in $T/leaf.csr -out $T/good.pem # and other / expired |
| 34 | openssl ca ... -cert untrusted-root.pem -keyfile $T/bad.key ... # untrusted |
| 35 | openssl x509 -in $T/NAME.pem -outform DER -out leaf-NAME.der |
| 36 | openssl rsa -in leaf.key -text -noout > leaf-key.txt |
| 37 | openssl ecparam -name secp384r1 -genkey -noout -out $T/ecroot.key |
| 38 | openssl req -x509 -new -key $T/ecroot.key -subj "/CN=omtls test EC root" -days 7300 -sha384 ... -out ec-root.pem |
| 39 | openssl ecparam -name prime256v1 -genkey -noout -out ec-leaf.key |
| 40 | 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 |
| 41 | ``` |