SMIMEA
SMIMEA
adds a SMIMEA
record to a domain. The name should be the hashed and stripped local part of the e-mail.
To create the name, you can the following command:
# For the e-mail [email protected] run:
echo -n "bosun" | sha256sum | awk '{print $1}' | cut -c1-56
# f10e7de079689f55c0cdd6782e4dd1448c84006962a4bd832e8eff73
Usage, selector, and type are ints.
Certificate is a hex string.
To create the string for the type 0, you can run this command with your S/MIME certificate:
openssl x509 -in smime-cert.pem -outform DER | xxd -p -c 10000
D("example.com", REG_MY_PROVIDER, DnsProvider(DSP_MY_PROVIDER),
// Create SMIMEA record for certificate for the name bosun
SMIMEA("f10e7de079689f55c0cdd6782e4dd1448c84006962a4bd832e8eff73", 3, 0, 0, "30820353308202f8a003020102..."),
);
Last updated