How to convert certificates from P12 to PEM formats?

Several CLI commands require a valid user digital certificate. To install certificate, user should set parameters x509_user_key and x509_user_cert in ~/.etics.conf so that they point to proper *.pem files.

How to convert digital certificate from .p12 to .pem format?

  • input: cert.p12 – certificate in .p12 format (pkcs12 – format commonly used by WebBrowsers)
  • output: cert.pem – certificate in .pem format (use it as both X509_USER_KEY and X509_USER_CERT)
  • procedure: execute (you will be prompted for a password):
    openssl pkcs12 -in cert.p12 -clcerts -out cert.pem
  • This is based on: OpenSSL manual
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r1 - 2007-01-10 - MebSter
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    ETICS All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback