iy3xk ftc9ky lscsucks

BIMI Certificate Signing Request (CSR) Generator

Nov 2026 (c) RLamb

Brand Indicators for Message Identification or BIMI is yet another bolt on email security feature that uses the DNS, like SPF, DKIM, DMARC, ...etc. See this IETF draft for details. The DNS record looks like:
default._bimi.cnn.com. TXT "v=BIMI1\; l=https://amplify.valimail.com/bimi/time-warner/R4Ezf5xK5ac-CNN.svg\; a=https://amplify.valimail.com/bimi/time-warner/R4Ezf5xK5ac-CNN.pem"
The "l=" part points to a small (less than 10K) .svg file with your icon [1]. The "a=" part points to a certificate that encodes the svg file and other information into it [2]. Since openssl in its current form does not natively read and encode an .svg file into the certificate or CSR used to create the BIMI certificate, I wrote a native ASN.1/DER program to generate the BIMI CSR from your .svg file and other info in bimicsr.config [3]. The Linux executable can be found here bimicsr with pgp sig here. You are then free to sign this CSR with your own certificate creating infrastructure. For example:
# Run bimicsr once then edit bimicsr.config to match your info.
# bimicsr assumes you have your private RSA key in bimikey.pem
./bimicsr
# signing the resultant bimi.csr.der with my ca.key
openssl x509 -req -inform der -in bimi.csr.der -CA ca.crt -CAkey ca.key -CAcreateserial -days 825 -sha256 -out bimicerts.pem -copy_extensions copy
# Optional: cat bimichain.pem >> bimicerts.pem
dname=`grep domainName bimicsr.config | cut -f2 -d':'`
svgf=`grep svgFileName bimicsr.config | cut -f2 -d':'`
echo DNS: default._bimi.$dname. TXT \"v=BIMI1\; l=https://www.$dname/$svgf\; a=https://www.$dname/bimicerts.pem\;\"
# Once published in your DNS check at https://www.suped.com/ or https://easydmarc.com/tools/bimi-lookup
[1] If you are unfamiliar with .svg vector drawn images you might use something like https://www.freeconvert.com/png-to-svg (fyi I set Filter Speckle to max 16) to help you create the appropriate square, 100x100 (or greater), less than 10K .svg file for this purpose.
[2] The .pem file may have your whole certificate chain appended to it.
[3] On first run bimicsr will create a default bimicsr.config file that you should edit to match you domain name, .svg file, and other information.


Other stuff here
'I no longer wish to be limited to the clouds.' - Star Trek 1969 'The Cloud Minders'
"I no longer wish to be limited to the clouds." - Star Trek 1969 "The Cloud Minders"
Copyright © 2025-2026 Department C Inc