I have a CSR (X509 certificate signing request) that looks like this:
-----BEGIN CERTIFICATE REQUEST-----
13 lines of <base 64>: 12 lines of 64 characters,
followed by 1 line of 52 characters
-----END CERTIFICATE REQUEST-----
I was told that to verify the CSR, I could use this command:
openssl req -text -noout -verify -in my.csr
but when I run that, I get this error:
unable to load X509 request
4419198400:error:0909006C:PEM routines:get_name:no start line:crypto/pem/pem_lib.c:745:Expecting: CERTIFICATE REQUEST
I get the same error if I use openssl req -in my.csr -noout -text
(leaving out the verify
)
If I paste the contents of the file into an online tool (website), the tools I have tried seem to parse it OK, but I would like to be able to do this locally, so I get all the information (the online tools do not tell me everything that is in the CSR). Can someone please tell me how to make this work?