Skip to content

mail-relay: Support uploading inbound certificates

Support renewing relay nodes inbound certificates by mTLS HTTPS upload. The client authenticates the relay through the pinnedpubkey of its self signed certificate (base64-encoded sha256-hash of the public key) which is published by each relay node. The relay authenticates the client via the new relay certificate to upload: the client also presents it as its client certificate, and the relay verifies both the client and uploaded certificate are issued by a trusted CA, to the domain name of the relay, and currently valid, first as part of the TLS handshake, and then after again on the uploaded data, with the added step of checking the key and the certificate match.

Usage looks like:

curl -T bundle.pem -E bundle.pem -k --pinnedpubkey "sha256//..." URL

The CAs trusted by the relay node default to certifi's trusted CAs, but can be overriden by passing a PEM encoded list of CAs as parameters.

Merge request reports