mox/testdata/integration/tls
Mechiel Lukkien cb229cb6cf
mox!
2023-01-30 14:27:06 +01:00
..
ca-key.pem mox! 2023-01-30 14:27:06 +01:00
ca.csr mox! 2023-01-30 14:27:06 +01:00
ca.pem mox! 2023-01-30 14:27:06 +01:00
cfssl-ca-csr.json mox! 2023-01-30 14:27:06 +01:00
Makefile mox! 2023-01-30 14:27:06 +01:00
moxmail1-key.pem mox! 2023-01-30 14:27:06 +01:00
moxmail1.csr mox! 2023-01-30 14:27:06 +01:00
moxmail1.pem mox! 2023-01-30 14:27:06 +01:00
moxmail2-key.pem mox! 2023-01-30 14:27:06 +01:00
moxmail2.csr mox! 2023-01-30 14:27:06 +01:00
moxmail2.pem mox! 2023-01-30 14:27:06 +01:00
moxmail3-key.pem mox! 2023-01-30 14:27:06 +01:00
moxmail3.csr mox! 2023-01-30 14:27:06 +01:00
moxmail3.pem mox! 2023-01-30 14:27:06 +01:00
postfixmail-key.pem mox! 2023-01-30 14:27:06 +01:00
postfixmail.csr mox! 2023-01-30 14:27:06 +01:00
postfixmail.pem mox! 2023-01-30 14:27:06 +01:00
readme.txt mox! 2023-01-30 14:27:06 +01:00

For TLS, keys are generated using https://github.com/cloudflare/cfssl
These private keys are published online, don't use them for anything other than local testing.

Commands:

# Generate CA
cfssl genkey -initca cfssl-ca-csr.json | cfssljson -bare ca

echo '{}' | cfssl gencert -ca ca.pem -ca-key ca-key.pem -hostname moxmail1.mox1.example - | cfssljson -bare moxmail1
echo '{}' | cfssl gencert -ca ca.pem -ca-key ca-key.pem -hostname moxmail2.mox2.example - | cfssljson -bare moxmail2
echo '{}' | cfssl gencert -ca ca.pem -ca-key ca-key.pem -hostname moxmail3.mox3.example - | cfssljson -bare moxmail3
echo '{}' | cfssl gencert -ca ca.pem -ca-key ca-key.pem -hostname postfixmail.postfix.example - | cfssljson -bare postfixmail