New issue
Advanced search Search tips

Issue 803819 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Jan 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

ERR_SSL_SERVER_CERT_BAD_FORMAT when certificate has "_" in CN

Reported by feina.jo...@gmail.com, Jan 19 2018

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0

Steps to reproduce the problem:
1. Set up an apache and use a certificate that has "_" in its CN.
2. Try to access the web and you get a ERR_SSL_SERVER_CERT_BAD_FORMAT
3. Create an alternative name without "_" in it (modifying openssl.cnf and generating the certificate again).
4. Google Chrome access is correct

What is the expected behavior?

What went wrong?
Get ERR_SSL_SERVER_CERT_BAD_FORMAT when certificate has "_" in CN.
We've had the issue in two different environments.

Did this work before? Yes 61

Chrome version: 63.0.3239.132 (Official Build) (64-bit) (cohort: Stable)  Channel: stable
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version: Shockwave Flash 28.0 r0
 
Components: Internals>Network>Certificate
Labels: -Type-Bug-Security -Restrict-View-SecurityTeam Type-Bug
I cannot reproduce this problem with Chrome 63, Chrome 64, or Chrome 65 on Windows.

Can you provide the .CER file of the failing certificate and/or the openssl.cnf file?
Labels: Needs-Feedback
(Alternatively, a log file recorded using these steps: https://dev.chromium.org/for-testers/providing-network-details would work)

Comment 3 by eroman@chromium.org, Jan 29 2018

Cc: mattm@chromium.org
Status: WontFix (was: Unconfirmed)
Thanks for the report.

I imagine you have encoded it using a PrintableString, for which underscore is not a valid character.

Either stick to characters valid for PrintableString (https://en.wikipedia.org/wiki/PrintableString), or encode with a UTF8String.

Chrome doesn't generally permit invalid PrintableStrings (although it does allow them in client certificates, because of how widespread they are).

Sign in to add a comment