Results 1 to 7 of 7

Thread: [RESOLVED] ASP.NET 2: How can I create a .pfx file from a .cer file?

  1. #1

    Thread Starter
    Lively Member Zolomon's Avatar
    Join Date
    Oct 2007
    Location
    Sweden
    Posts
    104

    Resolved [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

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    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

  3. #3
    New Member
    Join Date
    Oct 2010
    Location
    New York
    Posts
    1

    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 >

  4. #4

    Thread Starter
    Lively Member Zolomon's Avatar
    Join Date
    Oct 2007
    Location
    Sweden
    Posts
    104

    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.

  5. #5
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    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

  6. #6

    Thread Starter
    Lively Member Zolomon's Avatar
    Join Date
    Oct 2007
    Location
    Sweden
    Posts
    104

    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?

  7. #7
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    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
  •  



Click Here to Expand Forum to Full Width