Topic: Error -148 returned from CyaSSL_CTX_load_verify_locations();

I have a PEM file formatted as follows, holding many certificates:

-----BEGIN CERTIFICATE-----
MIIDIzCCAoygAwIBAgIEMAAAAjANBgkqhkiG9w0BAQUFADBfMQswCQYDVQQGEwJV
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
bGljIFByaW1hcnkgQ2V
bcV0oveifHtgPHfNDs5IAn8BL7abN+AqKjbc1YXWrOU/VG+WHgWv
-----END CERTIFICATE-----
etc

The function returns error -148 referenced as: ASN_UNKNOWN_OID_E    ASN oid error, unknown sum id. The same file is used by my antivirus and appears to work in that context. Does the function expect each cert to have an X509 identifier?

Share

Re: Error -148 returned from CyaSSL_CTX_load_verify_locations();

Hi,

Can you attach (or PM/email) the certificate file in question?

Thanks,
Chris

3 (edited by Philhippus 2014-03-18 08:55:15)

Re: Error -148 returned from CyaSSL_CTX_load_verify_locations();

Hi

attached is the PEM file in question. Have I missed something fundamental about the format?

cheers

p

Post's attachments

certs.pem 242.29 kb, 1 downloads since 2014-03-11 

You don't have the permssions to download the attachments of this post.

Share

Re: Error -148 returned from CyaSSL_CTX_load_verify_locations();

Hi p,

Thanks for sending over the file.  I'm looking into it and will get back to you shortly.

Best Regards,
Chris

Re: Error -148 returned from CyaSSL_CTX_load_verify_locations();

Hi Chris,

I thought the issue may be due to unicode characters in the file, but that doesn't explain the returned error code. Looking forward to hearing any insights you may have.

cheers

p

Share

Re: Error -148 returned from CyaSSL_CTX_load_verify_locations();

Chris,

I'm getting the same error after calling WolfSSL_CTX_load_verify_locations. My certificate is attached. It's a DSA certificate.

James

Post's attachments

intermediate.ca-cert.pem 2.87 kb, 3 downloads since 2020-06-06 

You don't have the permssions to download the attachments of this post.

Share