Re: SHA1 hash for public cert in keyachain
Re: SHA1 hash for public cert in keyachain
Subject : Re: SHA1 hash for public cert in keyachain
From: Jens Alfke <email@hidden >
Date: Mon, 9 Nov 2009 14:59:32 -0800
Delivered-to: email@hidden
Delivered-to: email@hidden
On Nov 9, 2009, at 2:48 PM, Keith Moores wrote:
Is there an CDSA/Apple API to retrieve the fingerprint (SHA-1 hash)
of a certificate from the keychain?
You call CSSM_CSP_PassThrough using the CSSM_APPLECSP_KEYDIGEST
operation.
You can find code for it here:
http://bitbucket.org/snej/mycrypto/src/tip/MYKey.m
Look at the -_keyDigest method.
—Jens _______________________________________________
Do not post admin requests to the list. They will be ignored.
Apple-cdsa mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2011 Apple Inc. All rights reserved.