Donate Share

OpenSSL.NET

Subscribe

Creation of PKCS12 certificates

  1. 2009-10-29 13:44:56 UTC

    Does anyone know if this wrapper supports the creation of PKCS12 certs through the use of the API function PKCS12_create()?

  2. 2009-11-16 02:47:33 UTC

    Currently we don't wrap the PCKS12_create() function. I'll take a look to see what it would take to do so.

  3. 2009-11-16 04:28:41 UTC

    Thanks for checking that out.

  4. 2009-11-22 15:47:30 UTC

    +1 for wrapping PCKS12_create()!

  5. 2009-11-22 19:56:38 UTC

    I've just uploaded version 0.4.3 which provides support for wrapping PCKS12_create(). I've also added the ability to write a pfx file.

    Here's what it looks like for usage:

    using (var pfx = new PKCS12(password, privateKey, certificate, caCertificates)) {
        using (BIO bout = BIO.File(pfx_path, "w")) {
            pfx.Write(bout);
        }
    }
    

    Let me know if this works or doesn't, I didn't have any good use-cases for my own testing.

    -Frank

< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.