i has download cacert.pem from internet, but how to get cacert.key ?
How to get public/private key from cacert.pem ?
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.
Sign up to join this communityi has download cacert.pem from internet, but how to get cacert.key ?
How to get public/private key from cacert.pem ?
Based on the initial description, you don't. The key file is what "secures" the certificate; without it, it can only be referenced. With it, you can sign other certificates. Which in turn means you can impersonate, and that would be A Bad Thing(tm).
Use the openssl
command to work with certificate files.
However there is no private key there. A certificate is a collection of a public key together with some other info. Nothing more.