is there a way to convert from a .key file to a .pfx file? thank you.
EDIT: I only have the .key file but my hosting provider says that I could convert it to .pfx with just that file.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To check if your .key file has everything you need:
It should print out certificate details. If it prints an error including the text ‘unable to load certificate’, then your file is not sufficient.
One of the above commands should print out valid key details. The other will give an error with the text ‘expecting an rsa key’ or ‘expecting a dsa key’.
If the error text says ‘bad decrypt’, you have provided an invalid passphrase, or the file is damaged.
If the error text says ‘Expecting: ANY PRIVATE KEY’, then your file is not sufficient.
If you got a key, and one certificate which matches the key (and optionally some other certificates), then you have enough to convert the file to a pfx. Then, as ISW said, it’s just a matter of
and you’re done.