question

alixouedraogo-6077 avatar image
0 Votes"
alixouedraogo-6077 asked JamesTran-MSFT answered

convert ppk to pfx to store in key vault


Hello,

I would like to store my key in a key vault to connect to a sftp (file /ppk). I then converted this file into a pem key but while storing it, I still get an error like this
Error: "The specified PEM X.509 certificate content can not be read. Please check if certificate is in valid PEM format. Accepted formats: PEM content or Base64 encoded PEM content."

I have basically only a .ppk file and a passphrase.

Do you have a solution for me please?

141491-image.png


azure-key-vault
image.png (7.2 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@alixouedraogo-6077 , We are trying to find more information on this and will update the thread.

0 Votes 0 ·

1 Answer

JamesTran-MSFT avatar image
0 Votes"
JamesTran-MSFT answered

@alixouedraogo-6077
Thank you for your time and patience throughout this issue!

Based off your error message - The specified PEM X.509 certificate content can not be read. Please check if certificate is in valid PEM format. Accepted formats: PEM content or Base64 encoded PEM content, can you make sure that the key you're trying to store is in valid PEM format.

PEM Format should be similar to:

 -----BEGIN RSA PRIVATE KEY-----
 Proc-Type: 4,ENCRYPTED
 DEK-Info: DES-EDE3-CBC,F57524B7B26F4694
    
 Random string of characters will be in this block
    
 -----END RSA PRIVATE KEY-----

For more info - CRL,CRT,CSR,NEW CSR,PRIVATE KEY, PUBLIC KEY Parser


Additional Links:
How can I check if the certificate file I have is in .pem format?
Import certificate API for azure key vault


If you have any other questions, please let me know.
Thank you for your time and patience throughout this issue.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.