Certificates with DN UniqueIdentifier

Mario Crypto <[email protected]>
Newsgroups gmane.comp.encryption.cryptlib
Message-ID <[email protected]>
Hi,

I am programming with cryptlib 3.3.3 on MS Win / VC++ 2003. Usually, 
I load 
any cert in DER format with this function:

cryptImportCert( bufPtr, count, CRYPT_UNUSED, &cryptCert );

This works fine with almost any certificate, but when I use a certificate 
with the DN UniqueIdentifier in the "Subject" and/or the "Issuer" this 
function fails. Indeed when debuging my code, I realize that it breaks 
in the function "readAVA" part of the file "cert/dn_rw.c", lines 79-81:

FILE: dn_rw.c

static int readAVA( INOUT STREAM *stream, 
...
79:	tag = peekTag( stream );
80:	if( cryptStatusError( tag ) )
81:		return( tag );
	if( tag == BER_BITSTRING )
...

I use this kind of certificates in several services with no problem. 
These certificates are issued by the same software.

An example of this type of certificates is as follows:

-----BEGIN CERTIFICATE-----
MIIFbTCCBFWgAwIBAgIUMDAwMDAwMDAwMDAwMDAwMDAwMDEwDQYJKoZIhvcNAQEF
BQAwgdAxFjAUBgNVBC0DDQBBQUExMjM0NTZBQUExEDAOBgNVBAcMB015IENpdHkx
ETAPBgNVBAgMCE15IFN0YXRlMQswCQYDVQQGEwJDQTEOMAwGA1UEEQwFMTIzNDUx
EzARBgNVBAkMCk15IGFkZHJlc3MxEjAQBgNVBAMMCUMuQS4gVGVzdDEOMAwGA1UE
CwwFUiAmIEQxFDASBgNVBAoMC015IEVtcGxveWVyMSUwIwYJKoZIhvcNAQkBFhZt
eWVtYWlsQG15ZW1wbG95ZXIuY29tMB4XDTEwMDIxNDAwMDAwMFoXDTIwMDIxMjAw
MDAwMFowgdAxFjAUBgNVBC0DDQBBQUExMjM0NTZBQUExEDAOBgNVBAcMB015IENp
dHkxETAPBgNVBAgMCE15IFN0YXRlMQswCQYDVQQGEwJDQTEOMAwGA1UEEQwFMTIz
NDUxEzARBgNVBAkMCk15IGFkZHJlc3MxEjAQBgNVBAMMCUMuQS4gVGVzdDEOMAwG
A1UECwwFUiAmIEQxFDASBgNVBAoMC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Am55F7WREcX6
02oXMXxMeIb/h+Jt9FS0zlhDo2w17+utSN1OaCsdlXJvSxD4vJGm7NGZNpySV7Se
uCPOF+F74kn/i1ReU6+tISNP2e9oJYuFPkiwWGz4o1Lg4pojTQjs9RUD3EmNDnM7
gJTTidc4cHujNXSMedZyzDzUdkc5WbsKeeA8hgFVtpdVYa/hhOj99O2FGXLrcwPh
Fg==
-----END CERTIFICATE-----

Can someone give me a clue that what is bad with this certificate?.
Is this a problem/bug of cryptlib?

Sincerely,
M.



      


_______________________________________________
Cryptlib mailing list
[email protected] via Mail: [email protected]
Archive: ftp://ftp.franken.de/pub/crypt/cryptlib/archives/
http://news.gmane.org/gmane.comp.encryption.cryptlib
Posts from non-subscribed addresses are blocked to prevent spam, please
subscribe in order to post messages.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.