How do i convert a pem format certificate to a der format certificate using openssl?



  • Check the type of file the pem certificate is.

    $ file mycert.pem
    mycert.pem: PEM certificate
    

    Convert certificate from pem to der format.

    $ openssl x509 -outform der -in mycert.pem -out mycert.der
    

    Check the file type of the converted file. The converted file is a binary encoded file.

    $ file mycert.der 
    mycert.der: data
    

Log in to reply
 

© Lightnetics 2024