Does Apigee Vault support storing files of format pkcs8 ?

has anyone tried to store pkcs8 format files in the vault? the data is binary, i’m not sure if it can be stored in the vault. Any pointers ?

~~ Q : Source : Slack ~~

Solved Solved
1 3 340
1 ACCEPTED SOLUTION

Former Community Member
Not applicable

Not directly. PKCS8 is a binary format. Apigee's vault stores key-value pairs where the value is generally a string. It is possible to Base64 encode a PCKS8 file and then store the result in the vault.

View solution in original post

3 REPLIES 3

Former Community Member
Not applicable

Not directly. PKCS8 is a binary format. Apigee's vault stores key-value pairs where the value is generally a string. It is possible to Base64 encode a PCKS8 file and then store the result in the vault.

Thank you @Srinandan Sridhar , It's helpful.

This gh project shows a provisioning script that inserts a PEM-encoded private key into the vault, and of course the nodejs code to retrieve the key from the vault.

There is also some Java callout code that turns the PEM-encoded thing into a PrivateKey.