Take an openssl asn1parse -inform der -in AttribCert.ber and you see that it starts with a Context 1 and not with a sequence, it seems to be an encoding of
[1] IMPLICIT AttributeCertificate. Hashim Saleem wrote:
Hi all,I have made a try to parse attribute certificate by writing attribute certificate ASN.1 structures myself after knowing that OpenSSL yet has no support for attribute certificate. I am getting error right at the beginning that is on d2i_X509AC(). It complains with the error message "Wrong Tag". It appears to me that I have some mistake in my attribute certificate ASN.1 structures declarations. I am attaching the source files alongwith the attribute certificate. OpenSSL gurus please help on this. Regards,Hashim Saleem
--To verify the signature, see http://edelpki.edelweb.fr/ Cela vous permet de charger le certificat de l'autorité; die Liste mit zurückgerufenen Zertifikaten finden Sie da auch.
smime.p7s
Description: S/MIME Cryptographic Signature