Azure / kubernetes-keyvault-flexvol

Azure keyvault integration with Kubernetes via a Flex Volume
MIT License
253 stars 84 forks source link

Certificate unreadable? #133

Closed DigitalMediageek closed 5 years ago

DigitalMediageek commented 5 years ago

Hi,

I've successfully created a flexvolume inside my kubernetes and can access the secrets/certificates from the PODs file system. Looking at the secrets, they appear as expected. However, if looking at a previously imported certificate into AKV, the certificate inside the POD seems to be to short. How do I retrieve the certificate from inside the POD with exactly the contents, I've imported?

DigitalMediageek commented 5 years ago

To be more specific: I'm importing a PEM certificate with the usual content: -----BEGIN CERTIFICATE----- ... -----END CERTIFICATE----- -----BEGIN PRIVATE KEY----- ... -----END PRIVATE KEY----- and set up flexvolume: volumes:

Btw.: is there an option to set volume type, like ascii or binary?

DigitalMediageek commented 5 years ago

Hmm ... seems to work now. Sorry.