× SSL247 joins forces with Sectigo CA - Find Out More...
Our accreditations and awards:
Cookies
0 items Total $0

Knowledge Base

  

Problem

When connecting, you may encounter the following error message:

"error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
error:0D07803A: asn1 encoding routines : ASN1_ITEM_EX_D2I : nested asn1 error" 


Cause

This error is due to an invalid certificate format installed on Apache server.


Resolution

To resolve this issue:  

1. Make sure your file has no trailing or leading spaces within the certificate file.  Your file should look like the example below:

-----BEGIN CERTIFICATE-----
MIICuTCCAiKgAwIBAgIDbuoZMA0GCSqGSIb3DQEBBAUAMIGHMQswCQYDVQQGEwJa
QTEiMCAGA1UECBMZRk9SIFRFU1RJTkcgUFVSUE9TRVMgT05MWTEdMBsGA1UEChMU
VGhhd3RlIENlcnRpZmljYXRpb24xFzAVBgNVBAsTDlRFU1QgVEVTVCBURVNUMRww
GgYDVQQDExNUaGF3dGUgVGVzdCBDQSBSb290MB4XDTAyMDkyNDE5NTUwNloXDTAy
MTAxNTE5NTUwNlowgZMxCzAJBgNVBAYTAlpBMRkwFwYDVQQIExBXZXN0ZXJuIFBy
b3ZpbmNlMRIwEAYDVQQHEwlDYXBlIFRvd24xITAfBgNVBAoTGFRoYXd0ZSBUZWNo
bmljYWwgU3VwcG9ydDEUMBIGA1UECxMLVGVjaFN1cHBvcnQxHDAaBgNVBAMUE3d3
dy5hYmNfdGVzdGluZy5jb20wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAMuN
/mLi6PEFx6P3dibCBJJ6Nq4FA48ixFkyIWXDuFTfZhmO0n0KQLEzDX1tPOIurl5V
+LEDaBCEpDqujlsguyThE4xohcsxZaETfJmcvF5VeO7nCGqipD5/3m5tOVdBKgci
BDSWPv2RSTNZyMJv3D7VcJdLxS6noQQSr34ErtchAgMBAAGjJTAjMBMGA1UdJQQM
MAoGCCsGAQUFBwMBMAwGA1UdEwEB/wQCMAAwDQYJKoZIhvcNAQEEBQADgYEAH+WV
TAmzN9R62oTkfKSaByHYd4wZzMwWul/upElyW49GHcEKOB+QnoMj3iWmN01BCeVQ
b5OI7uvf+MH/slU/RvwqB10eBeeZF6mCXgejNu+M9qaEqVEE+8yk2Grdl6H0IH8S
Sd1WBGXaVUwWMQmjniZyP4mJDkJu+zcA9pts1BA=
-----END CERTIFICATE----- 

Note: Carefully ensure there are no spaces or blanks within your certificate file, by selecting the entire text and looking for blank spaces on a text only editor.

 

2. Check Apache's configuration file to ensure the correct path is specified for the correct certificate file.

If the issue persists, reissue your certificate in your MySSL account.

Was this information Useful?
Comments

Privacy Policy