Closed Bug 1600013 Opened 6 years ago Closed 6 years ago

Firefox is the only browser not to accept my SSL certificate

Categories

(Core :: Security: PSM, defect)

70 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1448687

People

(Reporter: yohonet, Unassigned)

Details

Attachments

(1 file)

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

Steps to reproduce:

Go to a private website (not accessible outside my organization): https://spk-i-car-sh-3:8089/

Actual results:

Firefox Potential risk page. Below is the error message (and as you can see, the name of my website is listed as VALID):

Web sites prove their identity via certificates. Firefox does not trust this site because it uses a certificate that is not valid for spk-i-car-sh-3:8000. The certificate is only valid for the following names: 10.127.90.145, el4886, el4886.bc, el4886.mgt.lab.corp, spk-i-car-sh-3, spk-i-car-sh-3.bc, spk-i-car-sh-3.mgt.lab.corp, splunkmonint, splunkmonint.bc, splunkmonint.mgt.lab.corp

Error code: SSL_ERROR_BAD_CERT_DOMAIN

Expected results:

No warning page

Maybe to be linked with Bug #1346318

Component: Untriaged → Security: PSM
Product: Firefox → Core

(In reply to V P from comment #0)
Of course, there was a typo... instead of

Go to a private website (not accessible outside my organization): https://spk-i-car-sh-3:8089/
Read:
Go to a private website (not accessible outside my organization): https://spk-i-car-sh-3:8000/

Firefox reports using Cypher TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, 128 bit keys, TLS 1.2

When connecting with openssl, it appears to use a different cypher and key size compared to firefox (as you can see, openssl verification is "ok"):

$ openssl s_client -connect localhost:8000
CONNECTED(00000003)
depth=2 C = BE, O = Proximus, OU = proximus.com, CN = ProximusCorporateRootCA
verify return:1
depth=1 C = BE, O = Proximus, OU = proximus.com, CN = ProximusCorporateIssuingCA
verify return:1
depth=0 C = BE, ST = Brussel, L = Brussel, O = Proximus NV/SA, CN = spk-i-car-sh                                                                                                             -3, emailAddress = [redacted]
verify return:1
---
Certificate chain
 0 s:/C=BE/ST=Brussel/L=Brussel/O=Proximus NV/SA/CN=spk-i-car-sh-3/emailAddress=                                                                                                             [snip email address to prevent spam]s.com
   i:/C=BE/O=Proximus/OU=proximus.com/CN=ProximusCorporateIssuingCA
---
[snip certificate, can be found in attachment]
---
No client certificate CA names sent
Peer signing digest: SHA512
Server Temp Key: ECDH, P-256, 256 bits
---
SSL handshake has read 2550 bytes and written 415 bytes
---
New, TLSv1/SSLv3, Cipher is ECDHE-RSA-AES256-GCM-SHA384
Server public key is 2048 bit
Secure Renegotiation IS supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
SSL-Session:
    Protocol  : TLSv1.2
    Cipher    : ECDHE-RSA-AES256-GCM-SHA384
    Session-ID: 89D58297074CBC9FBC7501F6F4E9653DE02276A855B4AF944AD9BEFB8259E309
    Session-ID-ctx:
    Master-Key: C7FCDEA8509EE18933A2D0025DBCE37055130946A0629CCF2977A73492C4B5A4                                                                                                             54B2F26DA91FB88695FB7248649EEEF0
    Key-Arg   : None
    Krb5 Principal: None
    PSK identity: None
    PSK identity hint: None
    TLS session ticket lifetime hint: 7200 (seconds)
    TLS session ticket:
    0000 - 6f 79 09 aa a3 03 d9 37-2f 6d 36 e3 02 11 dd 7c   oy.....7/m6....|
    0010 - b3 f9 b9 c5 a0 6a 0a 42-a6 35 b5 04 f2 48 1e b6   .....j.B.5...H..
    0020 - c6 41 c4 33 fc 26 4b 4f-2d 70 57 85 26 df f6 aa   .A.3.&KO-pW.&...
    0030 - 4e 53 98 5d e0 a2 b0 90-4a 7d 87 cd f4 cd 86 56   NS.]....J}.....V
    0040 - 68 27 3e 16 52 80 89 37-a6 1f d1 ad 53 f6 e6 08   h'>.R..7....S...
    0050 - b3 76 5e b1 79 c2 7b 7b-72 83 1f ec dc d6 0c 7d   .v^.y.{{r......}
    0060 - 39 0e ac eb 1f d6 44 ee-69 b2 8e 3d b5 ba 3b 66   9.....D.i..=..;f
    0070 - 05 76 c1 9b e1 f8 11 ab-6b db fe ed 6f 96 0e 62   .v......k...o..b
    0080 - 41 15 9a 0a 4b 8e 23 da-35 10 c6 c7 bd 7b 9d 08   A...K.#.5....{..
    0090 - 30 ac a5 56 6b f3 43 30-14 e7 35 1f 79 21 2a 73   0..Vk.C0..5.y!*s
    00a0 - b1 cc ae fd fe 3e 83 b9-f5 bd 62 93 c8 77 2b b0   .....>....b..w+.
    00b0 - 94 a0 34 1b 81 49 70 f4-e5 ac 34 ee 32 9a 63 10   ..4..Ip...4.2.c.

    Start Time: 1575448515
    Timeout   : 300 (sec)
    Verify return code: 0 (ok)
---

(sorry, markdown leaves my comment incorrectly formatted and I can't edit it)

(could you also remove the mail address to avoid spam ?)

Thanks for the info, and edits done. We'll take a look at this during next PSM triage, soon!

One issue is that certificate has an IP address marked as a DNS name in the subject alternative names extension - you could try removing that or marking it as an IP address instead.

Flags: needinfo?(yohonet)

(In reply to Dana Keeler (she/her) (use needinfo) (:keeler for reviews) from comment #8)

One issue is that certificate has an IP address marked as a DNS name in the subject alternative names extension - you could try removing that or marking it as an IP address instead.

Indeed, I'll try to fix that and test again. But even if that's the reason, firefox error message is misleading.

Thanks for the edit :jcj

Flags: needinfo?(yohonet)
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: