convert ppk to pfx to store in key vault

alix ouedraogo 41 Reputation points
2021-10-18T16:38:43.773+00:00

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
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,112 questions
{count} votes

Accepted answer
  1. JamesTran-MSFT 36,366 Reputation points Microsoft Employee
    2021-10-26T18:36:57.097+00:00

    @alix ouedraogo
    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.

    0 comments No comments

0 additional answers

Sort by: Most helpful