I have run into a CSR generation problem I can't seem to explain and was wondering if someone could either help me with my command, or tell me what I am generating.
I think I am generating CRT Certificates in PEM format, but it seems my key is not in PEM format !?
Here is what I do, and what I get. I create a CSR with:
openssl req -nodes -new -newkey rsa:2048 -sha256 -out test.csr
This generate 2 files: privkey.pem and test.csr
Now when I try and update some servers, they complain that my Private key is not in PEM format. nginx and apache seem happy with my key.
When I then convert the key with:
openssl rsa -in privkey.pem -out privkey.rsa.pem
It works !?!
vimdiff shows me the difference in the files visually, and one can see that not only is the heading different, but the content is also been changed (after the first 4 characters)
And thus my question
is the key created in DER - PEM format, even though I specify not to use DER in the create line ?