OSX: Import certificate into keychain

Ask a Question related to Mac Programming, Design and Development.

  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 documentation 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. Similar Questions and Discussions

    1. Win32::OLE and CAPICOM to find a certificate in certificate store will raise exception
      Hi, I am trying to use win32::OLE to access certificate store via CAPICOM. If certificates in the store meet the searching criteria, the...
    2. SSL Certificate
      We're trying to get a SSL certificate set up. But we keep getting a "connection terminated unexpectedly" error. And nothing is being recorded in...
    3. Keychain access and new builds
      I have an app which accesses the Keychain. If I use a given build repeatedly, I am only prompted for permission to access the item only on the...
    4. Mail Keychain Insanity
      Using OS 10.2.6 Mail 1.2.5 Everytime I log on and open up mail I have to enter my Keychain password. Security isn't an issue for me so I have...
    5. Certificate Server and Windows XP - Cannot install certificate
      Hello all, I would like to implement certificate server. I have installed the service on Win2003 server in standalone mode. I have created from...
  3. #2

    Default Re: OSX: Import certificate into keychain

    In article <50052383.0309120222.678b82bc@posting.google.com >,
    [email]christian.witt@epost.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

  4. #3

    Default Re: OSX: Import certificate into keychain

    Thomas Engelmeier <aug03_nospam@engelmeier.com> wrote in message news:<bjt4jk$mhtku$1@ID-2640.news.uni-berlin.de>...
    > In article <50052383.0309120222.678b82bc@posting.google.com >,
    > [email]christian.witt@epost.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

Posting Permissions

  • You may not post new threads
  • You may 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