0

I have a certificate issued by https://www.starfieldtech.com/ - is it possible to use it to codesign my osx application? I successfully imported that certificate (.pem) to Keychain Access. But I do not know how to add to it corresponding privateKey.key file.
This is a 2048 bits sha256 certificate.

denys
  • 2,437
  • 6
  • 31
  • 55
  • 2
    What's the point? If you code-sign with a non-Apple certificate, it won't be recognized by Gatekeeper and other Apple technologies. – JWWalker Aug 26 '17 at 16:21

1 Answers1

0
  1. Convert .pem certificate to .p12

openssl pkcs12 -export -in <OrName>cert.pem -inkey <OrgName>Private.key -passout pass:<password> -out <OrgName>.p12 -name “MyOrg LLC”

  1. Import it into Keychain Access
  2. Project settings -> General -> Uncheck “Automatically manage signing”
  3. Project settings -> Build Settings -> Signning -> Code Signing Identity -> Select “MyOrg LLC” in Identities in Keychain
  4. Project settings -> General should looks like:

Provisioning profile: “None”
Team: “None”
Signing Certificate: “MyOrg LLC”

denys
  • 2,437
  • 6
  • 31
  • 55