X
Tap here to go to the mobile version of the site.

Support Forum

What causes Error code: SEC_ERROR_BAD_DER?

Posted

I'm trying to setup a CA and create a cert, but when I browse to it, I get "Error code: SEC_ERROR_BAD_DER". Is there a little more info about what this means? I don't know where in my process to look for a problem.

I'm trying to setup a CA and create a cert, but when I browse to it, I get "Error code: SEC_ERROR_BAD_DER". Is there a little more info about what this means? I don't know where in my process to look for a problem.

Additional System Details

Installed Plug-ins

  • Shockwave Flash 32.0 r0

Application

  • User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0

More Information

philipp
  • Top 25 Contributor
  • Moderator
5291 solutions 23378 answers

Helpful Reply

hi, this error code means "A certificate is not properly encoded according to ASN.1 (DER) encoding" according to https://wiki.mozilla.org/SecurityEngineering/x509Certs#Error_Codes_in_Firefox

hi, this error code means "A certificate is not properly encoded according to ASN.1 (DER) encoding" according to https://wiki.mozilla.org/SecurityEngineering/x509Certs#Error_Codes_in_Firefox

Question owner

Ok, that's a good start. Indeed the cert is in pem format on the server, but that was what the mod_ssl documentation says to use. Additionally Chrome and IE are seeing the cert just fine. I'll try converting it to der and see if Apache will accept it.

Ok, that's a good start. Indeed the cert is in pem format on the server, but that was what the [https://httpd.apache.org/docs/2.4/mod/mod_ssl.html#sslcertificatefile mod_ssl documentation] says to use. Additionally Chrome and IE are seeing the cert just fine. I'll try converting it to der and see if Apache will accept it.