• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Cocoa and X509 certs?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cocoa and X509 certs?


  • Subject: Cocoa and X509 certs?
  • From: Steven Palm <email@hidden>
  • Date: Tue, 30 Nov 2004 19:13:57 -0600

I'm writing an app that is a GUI front-end for a command line tool that uses certs. I wanted to provide the ability to allow the user to manage a certificate library and various configurations which use various certs. Everything is working great, and I have a routine that will take the PEM-encoded certificate they imported and using the SecCertificateCreateFromData and SFCertificatePanel to allow the user to view the certificate.

Now, if the cert is valid, everything works as expected. If it's not valid, the SFCertificatePanel lets the user know, but I'm wondering what is the easiest way to validate (as in form, not valid as in authentication) the certificate on import to let the user know if it is good or not.

I'm really surprised that as widely used as the openssl library is that documentation can be (or seem to be) in such poor shape... at least for someone who knows very little about all the intricacies of certificates and just wants the bare bones capabilities: read a cert (auto-determine whether in DER, PEM, etc format), verify that it is proper, and extract bits of information like the expiration date, issuer, subject, etc...

Can anyone recommend some good sample code for Cocoa to deal with this? I've looked long and hard, and turned up next to nothing.

Other than that, any good (relatively novice-level) tutorials or howto documents on the web that I somehow missed?

THANKS!

Steve


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: RE: Swapping isa's (was Re: Hex Edit controls (resknife))
  • Next by Date: Re: Manual Outline View Sorting
  • Previous by thread: Re: WebKit headers
  • Next by thread: Launch Services
  • Index(es):
    • Date
    • Thread