Automating ACMEv2 Certificate Management on BIG-IP
Hi, looking at implementing this at some point soon. Happy to see I can use EAB key hmac etc. One thing, on the kojot-acme page, i don't see any examples of how to include a SAN on your examples. All of our certs typically have a long organistation fqdn, then a shorter one for people to use. Think "SuperLongExampleComany.com" vs "slec.com" so it's a deal breaker to use for us to have.
Thanks for you work.
You make a good point. The config anchors on the domain name of the cert and intentionally copies the SANs from existing certs in the renewal. However, it doesn't have a provision for specifying SAN values for a new cert. The simplest thing would be to create a self-signed cert with all of the needed SANs and then point your config at this. The Kojot script would overwrite this with an issued cert, keeping all of the SAN values. But I can definitely look into adding this feature.
- lawrencegtNov 04, 2024
Nimbostratus
Thanks Kevin, I'll have to have a play by the sounds of it! Thanks for your response, much appreciated.
- Kevin_StewartNov 13, 2024
Employee
Kojot is a BIG-IP wrapper for Dehydrated, and as such allows some of the underlying flags to fall through. The one that's actually useful here is the -d (--domain) flag for adding SAN values to the certificate. I've updated the Global Configuration table to list this option.
www.baz.com := --ca https://acme.locallab.com:9000/directory -a rsa -d foo.baz.com -d bar.baz.com
This will add www.baz.com as the subject CN, and www.baz.com, foo.baz.com, and bar.baz.com as SAN values. This option works for new (non-existent) certificates. Renewal operations will maintain the SAN values from the existing certificate.
- Frank_ReiningaJan 23, 2025
Nimbostratus
Hi Kevin/Jason,
Nice tool and works like a charm. With regards to the SAN values. Is updating SAN fields something that will be added in the future? And partitions are not supported right? All certificates are created in Common?
These were the 2 things I ran into while testing. Thanks for this nice tool.
Regards,
Frank