|
-
Oct 8th, 2010, 09:20 AM
#1
Thread Starter
Lively Member
[RESOLVED] ASP.NET 2: How can I create a .pfx file from a .cer file?
Hello!
I have a .cer file provided by my client. I'm implementing a SAML v2.0 compliant solution using ComponentSpace's implementation of the specification. I need to create a .pfx file from the .cer file that I can store on an IIS server.
How can I do this? Not sure if this is the correct forum.
Any help at all is appreciated!
Regards,
Zolomon
-
Oct 8th, 2010, 10:04 AM
#2
Re: ASP.NET 2: How can I create a .pfx file from a .cer file?
Hey,
From the quick google that I have done (can't say I have done this before) the quickest easiest way would be to import it then export it, using the certificate manager in Windows Management Console.
Gary
-
Oct 9th, 2010, 02:58 PM
#3
New Member
Re: ASP.NET 2: How can I create a .pfx file from a .cer file?
Most likely your .cer file only contains a public key. In order to generate a .pfx file, you will need a public\private key pair. The easiest way to do this is either use the MSFT makecert tool or use openssl. If you are going down the path of openssl, then the following commands should get you what you need. Good luck.
openssl req -new -x509 -days 365 -nodes -out yourdomain.org.crt -keyout yourdomain.org.pem
openssl pkcs12 -export -in yourdomain.org.crt -inkey yourdomain.org.pem -out yourdomain.org.pfx
rcarroll
< spam link removed by moderator >
-
Oct 10th, 2010, 04:34 AM
#4
Thread Starter
Lively Member
Re: ASP.NET 2: How can I create a .pfx file from a .cer file?
Thanks!
I tried gep13's but I couldn't export the .cer as a .pfx file. I guess I'm lacking the private key.
-
Oct 11th, 2010, 04:22 AM
#5
Re: [RESOLVED] ASP.NET 2: How can I create a .pfx file from a .cer file?
Hey,
It could well be that, yes.
Are you in "charge" of the certificate? i.e. where the original is stored and created?
Gary
-
Oct 11th, 2010, 04:40 AM
#6
Thread Starter
Lively Member
Re: [RESOLVED] ASP.NET 2: How can I create a .pfx file from a .cer file?
Nope! I've been given their .cer-file only and I read that it could consist of several private/public keys. It doesn't seem like it's containing any private keys, only a public key. Though, I am not sure how I can confirm this.
Do you know?
-
Oct 11th, 2010, 04:49 AM
#7
Re: [RESOLVED] ASP.NET 2: How can I create a .pfx file from a .cer file?
No, unfortunately I don't. The best bet would be to go back to the source, and ask them.
Gary
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|