How to generate SSL private key and CA certificates output as files

I’m wondering if there is a simple process to generate SSL keys/certs output as files on disk. I’ve read the docs on how to generate SSL certs with vault but they don’t cater to writing the output to a file for general use.

consul-template also shows an example that didn’t really work for me (https://www.hashicorp.com/blog/certificate-management-with-vault) and wasn’t very clear. I was hoping to do it fairly simply so I’m hoping there might be an example here from others that have probably had to do the same thing.

In my case, these SSL certs will be used for installing mongo DB. Thanks if you can provide any tips!

Is redirecting command output, like in this tutorial, not sufficient for your needs?

1 Like

Thats just what I needed, thankyou @jlj7!

1 Like