Solved: Error:0D0680A8 : asn1 encoding routines: ASN1_CHECK_TLEN: wrong tag

Better Stack Team
Updated on May 4, 2022

Problem

Error:0D0680A8 : asn1 encoding routines: ASN1CHECKTLEN: wrong tag error message when accessing your website.

Cause of the problem

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

Solution

Check your certificate formating

Make sure there are no leading or trailing spaces in the certificate file.

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.

Check Apache configuration

Check the Apache configuration file and make sure that the correct path is specified for the correct certificate file.

Got an article suggestion? Let us know
Explore more
Licensed under CC-BY-NC-SA

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

We are hiring.

Software is our way of making the world a tiny bit better. We build tools for the makers of tomorrow.

Explore all positions →

Reliability is the
ultimate feature

Delightful observability tools that turn your logs & monitoring into a secret weapon for shipping better software faster.

Explore Better Stack