I’ve got an interesting problem looking for a solution. I need to set up a custom PKI, really a PKI that needs to use a custom certificate format. Unfortunately X.509 certs even with additional attributes don’t help us, and for various reasons need our own certificate format.
Was hoping to use the PKI secrets engine for the key management, we can manage the certificate generation ourselves. But it doesn’t look like PKI offers a generic document signing API? We need to build two CAs actually, one for the intermediate cert (root CA is offline), and one for our application’s certs… but need to find a way to sign these custom certs ideally without pulling private keys out of Vault (though we could if we had to).
Looks like the Transit secrets engine provides signing as a service. Wondering if I can use this with my PKI managed keys to cobble together an overall solution?
At this point, looking for guidance or advice on a path forward. Ultimately we can look at creating our own custom plug-in using PKI as a model, but also looking for a short term solution we can work with using existing secrets engine(s).
Thanks Max, agree this is making extra work for us. We are in a very bandwidth constrained scenario (beaming commands to a satellite tumbling in outer space) and have had to come up with a very small footprint on our communications.
Outside of custom formats, about the best I can offer is to use ECDSA certificates across the entire chain with minimal extra info and use binary DER format to minimize overhead. I’m getting 388 bytes for something like:
Thanks cipherboy, that’s a big improvement in cert size, I’ll run that by the team.
Yeah, I’ve just been exploring Transit secrets engine in more depth, and that looks like it could be a path forward for us if we need to stick with some form of roll-our-own cert or abandon that need entirely.