Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: DER decoding



Thanks Doug,

Sadly, that doesn't seem to work for me -
CSSMOID_X509V1SubjectNameCStruct gives me nothing, or at least the
CSSM_DATA_PTR I get from CSSM_CL_CertGetFirstFieldValue seems to have
a Length of 0, and no data.

Using the same paradigm with CSSMOID_X509V1SubjectName definitely
gives me the DER version though (or at least one that's somehow
encoded - it looks like it could be DER.

The cert is a self-signed test one generated with certtool.


On 9/25/06, Doug Mitchell <email@hidden> wrote:
Your best bet is to fetch the decoded subject name using
CSSMOID_X509V1SubjectNameCStruct. The returned field is a (decoded)
CSSM_X509_NAME.

--dpm

On Sep 24, 2006, at 9:58 PM, Martin Redington wrote:

> I have a DER encoded string that I got from the
> CSSMOID_X509V1SubjectName field of a SecIdentityRef.
>
> What is the recommended way of decoding it?
>
> I've managed to hack the string out, and it seems to work fine in all
> cases so far, but what is the correct way?
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Apple-cdsa mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/apple-cdsa/email@hidden
>
> This email sent to email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Apple-cdsa mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/apple-cdsa/email@hidden

This email sent to email@hidden
References: 
 >DER decoding (From: "Martin Redington" <email@hidden>)
 >Re: DER decoding (From: Doug Mitchell <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.