We provide managed hosting and co-locating services out of Amsterdam.
Services — Projects — Mirrors — Gists — Code — Contact us
Start by creating a hash from your full certificate or your public key. We have opted for the public key as it doesn't change, thanx Florian!
You can get this hash by running the following command against your certificate.
openssl x509 -noout -pubkey -in /etc/ssl/<cert>.crt | openssl pkey -pubin -outform DER 2>/dev/null | sha512
sha256
openssl x509 -noout -pubkey -in /etc/ssl/<cert>.crt | openssl pkey -pubin -outform DER 2>/dev/null | sha256
Once that is done you will get a hash which looks like:
fff78a8332efceae8d209ca79aa8e0213e31b2aa37a7f585d0138719267df9dccb431c896f1ec2e85e2f0a9dd76bd41824991d4d0ab187c57254dd434d0ebe28
or
4e39c8646a89bd375e2b7a9abe5d97b4d57b3569e296b7
You need to create a TLSA record in your zonefile, something like:
_443._tcp IN TLSA 3 1 1 4e39c8646a89bd375e2b7a9abe5d97b4d57b3569e296b7
_443._tcp.www IN TLSA 3 1 1 4e39c8646a89bd375e2b7a9abe5d97b4d57b3569e296b7
For SMTP it's very similar:
_25._tcp.mx1 IN TLSA 3 1 2 483241a592771384e9786b94f24cb33071a6682b95a87a0d744264c89e88762d26f9ae06dac24ef4b164673948622625d305836e7aaf16cc8b56eaaee03030b2
_25._tcp.mail IN TLSA 3 1 2 fff78a8332efceae8d209ca79aa8e0213e31b2aa37a7f585d0138719267df9dccb431c896f1ec2e85e2f0a9dd76bd41824991d4d0ab187c57254dd434d0ebe28