Display certificate content like Keychain Access app does

Hi,

I have a certificate, how can I display the certificate content in my Mac app just like Keychain Access app does. Can I popup the certificate content dialog just like Keychain Access app?

Answered by DTS Engineer in 813594022

My goodness, it’s rare that I get to help folks with this API!

how can I display the certificate content in my Mac app just like Keychain Access app does.

Use SFCertificatePanel. Or if you want to embed the view in your app’s existing window, SFCertificateView.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Accepted Answer

My goodness, it’s rare that I get to help folks with this API!

how can I display the certificate content in my Mac app just like Keychain Access app does.

Use SFCertificatePanel. Or if you want to embed the view in your app’s existing window, SFCertificateView.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Thank you very much. This APIs are just what I want.

Just came across this old thread and wanted to see, if I do not want a modal, then use SFCertificateView (like Keychain showing a cert) and if I want a model to pop up on an existing with then use SFCertificatePanel (more like Safari how it shows a cert)

I’m not sure if this is a question or a comment. As a comment, it sounds pretty reasonable. If it’s a question, I’d appreciate you clarify the question. I’ve found that adding question marks can help (-:

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Display certificate content like Keychain Access app does
 
 
Q