Am new to SSL certificates. I have a private-key and certificate generated using the below command:-
openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:4096 -keyout private.key -out certificate.crt
Here, I assume the output files private.key and certificate.crt are in pem format(pkcs#1).
Now, when i try to convert the private key to pkcs8 format using the below command:-
openssl pkcs8 -in private.key -topk8 -nocrypt -out pkeypk8.pk8
There is absolutely no difference between private.key and pkeypk8.pk8 file. The diff is nil. Now, i'm not sure if I using the openssl commands correctly. What is expected when a PEM format private-key is converted to pkcs8 format?