How to convert PKCS8 to PKCS1?

Discussion in 'Mac Apps and Mac App Store' started by scissorband, Sep 9, 2010.

  1. scissorband macrumors member

    Joined:
    Jan 16, 2010
    #1
    I tried the command:
    Code:
    $ openssl pkcs8 -in server.key.pem pkcs1 -out newserver.key.pem -nocrypt
    
    But the results of the new key are the exact same as the old PKCS8 formatted one.
     
  2. wirelessness macrumors 6502

    Joined:
    Jun 20, 2010
    #2
    I don't think you will be able to do this because the two PKCS standards are designed to do different functions:

    PKCS1 is designed for encrypting and signing Public Keys

    PKCS8 is designed for dealing exclusively with Private Keys


    So, I don't think you could just convert one to the other.....but I'm not an expert.

    Try the openssl community for more details.
     

Share This Page