About this question
I downloaded certificated for my website using letsencrypt:
letsencrypt -d crackerscreed.me --manual --preferred-challenges dns certonly The process was successful but the site I want to implement these certificates on is expecting a .key file for private key. There are many solution which tells the solution using openSSL:
When I tried: rsa -outform der -in /etc/letsencrypt/live/crackerscreed.me/privkey.pem -out /etc/letsencrypt/live/crackerscreed.me/privkey.key
The site popped an error saying:
Invalid KEY format encountered. Your file doesn't seem to have a valid key! Please, upload a valid key file.
and when I tried with x509 instead of RSA, x509 -outform der -in /etc/letsencrypt/live/crackerscreed.me/privkey.pem -out /etc/letsencrypt/live/crackerscreed.me/privkey.key
unable to load certificate
OpenSSL popped an error saying:
unable to load certificate 140343522624768:error:0906D06C:PEM routines:PEM_read_bio:no start line:../crypto/pem/pem_lib.c:691:Expecting: TRUSTED CERTIFICATE
What do I do now? Is there a way to properly convert the file? If not, can I revoke these certificates and create new ones and somehow ask letsencrypt to provide me certificates directly as a .key file instead of a .pem file?