k8s
k8s copied to clipboard
Is the --also-generate-pkcs8-key option available for this app?
I believe that for my java app running in kubernetes I need a pkcs8 formatted key. Is --also-generate-pkcs8-key argument available for this request certificate job?
https://www.cockroachlabs.com/docs/v19.1/create-security-certificates.html#general
cc @mberhault
Unfortunately not. Until it is, you can convert the key using openssl
after the request-cert
job has finished running. Specifically:
openssl pkcs8 -topk8 -inform PEM -outform DER -in client.maxroach.key -out client.maxroach.pk8 -nocrypt
I was able to use the openssl temporarily. To do so I had to add an additional initContainer to my pod to run the openssl command on the acquired certificates. The reason i had to use an additional init container was that the request cert init container does not include openssl. So for this workaround I used the cockroach (client?) container image.
Is there a timeline for getting the pkcs8 param added to the request-cert?