Professional Web Applications Themes

OSX: Import certificate into keychain - Mac Programming

Hi, I have a certificate exported from Windows Internet Explorer (certificate + private key) using the pfx-format. No I want to import this certificate and the corresponding private key into the keychain. I can use the openssl-tool to spli up the pfx-file into the certificate and the private-key. And I can import the certificate using the certtool into a keychain. But how do I import the private-key? In the Security/Certifcate/Key-Services I found functions for creating and importing a public/private-key-pair but not for importing a private key. Does anybody now more details about the SecCertificateBundleImport-function? The header SecCertificateBundle.h is mentioned in ...

  1. #1

    Default OSX: Import certificate into keychain

    Hi,

    I have a certificate exported from Windows Internet Explorer
    (certificate + private key) using the pfx-format. No I want to import
    this certificate and the corresponding private key into the keychain.

    I can use the openssl-tool to spli up the pfx-file into the
    certificate and the private-key. And I can import the certificate
    using the certtool into a keychain. But how do I import the
    private-key? In the Security/Certifcate/Key-Services I found functions
    for creating and importing a public/private-key-pair but not for
    importing a private key.

    Does anybody now more details about the
    SecCertificateBundleImport-function? The header SecCertificateBundle.h
    is mentioned in the doentation which came with Jaguar but not on
    the apple-website.

    And what das the return-code -4 means? It is returned when I call the
    SecCertificateBundleImport-function.

    thanks in advance

    Christian
    Christian Witt Guest

  2. #2

    Default Re: OSX: Import certificate into keychain

    In article <50052383.0309120222.678b82bcposting.google.com >,
    [email]christian.wittepost.de[/email] (Christian Witt) wrote:
    > Hi,
    >
    > I have a certificate exported from Windows Internet Explorer
    > (certificate + private key) using the pfx-format. No I want to import
    > this certificate and the corresponding private key into the keychain.
    I just used certtool to import the certificates of fernuni-hagen.de for
    Safari.

    More information about importing them is at <http://www.macosxhints.com/article.php?story=20030124064421978>

    Regards,
    Tom_E
    Thomas Engelmeier Guest

  3. #3

    Default Re: OSX: Import certificate into keychain

    Thomas Engelmeier <aug03_nospamengelmeier.com> wrote in message news:<bjt4jk$mhtku$1ID-2640.news.uni-berlin.de>...
    > In article <50052383.0309120222.678b82bcposting.google.com >,
    > [email]christian.wittepost.de[/email] (Christian Witt) wrote:
    >
    > > Hi,
    > >
    > > I have a certificate exported from Windows Internet Explorer
    > > (certificate + private key) using the pfx-format. No I want to import
    > > this certificate and the corresponding private key into the keychain.
    >
    > I just used certtool to import the certificates of fernuni-hagen.de for
    > Safari.
    No, this doesn't work in my case, because I want to import not only
    the certificate but also the private key belonging to the
    certificate's public key. certtool just imports the certificate. In
    your case (importing the root-certificate from hagen) you do not need
    the private key (and you do not even know it)

    Ciao

    Christian
    Christian Witt Guest

Similar Threads

  1. Replies: 1
    Last Post: July 21st, 03:54 PM
  2. SSL Certificate
    By EdNeedsHelp in forum Coldfusion Server Administration
    Replies: 2
    Last Post: September 29th, 05:28 PM
  3. Keychain access and new builds
    By Lorenzo Thurman in forum Mac Programming
    Replies: 2
    Last Post: August 24th, 06:26 AM
  4. Mail Keychain Insanity
    By Jimmy Joe in forum Mac Applications & Software
    Replies: 4
    Last Post: July 17th, 03:57 PM
  5. Certificate Server and Windows XP - Cannot install certificate
    By Justin Tyme in forum Windows Setup, Administration & Security
    Replies: 0
    Last Post: July 15th, 04:57 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139