Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Cyber Security
  3. Question
Cyber Security

I am Expecting : Trusted certificate while converting pem to crt.

Asked by Anil Jha Feb 28, 2022 940 views 1 answer
Share

About this question

I am trying to generate a private-public key pair and convert the public key into a certificate which can be added into my truststore. To generate private & public key: openssl rsa -in private.pem -outform PEM -pubout -out public_key.pem Now I am trying to convert this to a certificate: openssl x509 -outform der -in  public_key.pem -out  public.cer  But I get an error: 7962:error:0906D06C:PEM routines:PEM_read_bio:no start line:/BuildRoot/Library/Caches/com.apple.xbs/Sources/OpenSSL098/OpenSSL098-64.30.2/src/crypto/pem/pem_lib.c:648:Expecting: TRUSTED CERTIFICATE All tutorials show that I have to convert pem to crt before adding to a truststore.


Your answer

1 Answer

More Cyber Security discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Cyber Security Blogs

Guides, tips and career advice on Cyber Security from JanBask experts.