Closed Bug 1669901 Opened 5 years ago Closed 4 years ago

about:certificate failing on unknown entries in subject field

Categories

(Firefox :: Security, defect, P3)

78 Branch
defect

Tracking

()

RESOLVED DUPLICATE of bug 1617458

People

(Reporter: spire666, Unassigned)

References

(Blocks 1 open bug)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

Steps to reproduce:

Import Intermediate CA cert to Firefox to identify Websites.
(In my case a eliptic curve, secp384r1, SHA512 encrypted cert)
Go to my server with SSL self signed cert.
(Same encryption level)
View server certificate.

Actual results:

about:certificate opens with this message: Something went wrong.
We were unable to find the certificate information, or the certificate is corrupted. Please try again.

Expected results:

It should actually be able to show this self signed certificate. No matter if valid, or not. I have to use chrome to show the certificate

Setting a component for this issue in order to get the dev team involved.
If you feel it's an incorrect one please feel free to change it to a more appropriate one.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core
Blocks: cert-viewer
Component: Widget: Gtk → Security
Product: Core → Firefox

Is it possible for you to share the full about:certificate url (including the encoded certificate)?

Thanks!

Severity: -- → S3
Flags: needinfo?(spire666)
Priority: -- → P2

Hello, thats the URL
about:certificate?cert=MIIEhTCCA%2BegAwIBAgIBBDAKBggqhkjOPQQDBDCBijELMAkGA1UEBhMCREUxCzAJBgNVBAgMAkJBMQwwCgYDVQQHDANXVUUxHDAaBgNVBAoME3ZhbGhhbGwgZW50ZXJwcmlzZXMxIjAgBgkqhkiG9w0BCQEWE21pY2hhZWxib3Jla0B3ZWIuZGUxHjAcBgNVBAMMFWludGVybWVkaWF0ZS1PcG5zZW5zZTAeFw0yMDA5MTcwODMwNTFaFw0yNjAzMTAwODMwNTFaMIIBADELMAkGA1UEBhMCREUxCzAJBgNVBAgMAkJBMQwwCgYDVQQHDANXVUUxHDAaBgNVBAoME3ZhbGhhbGwgZW50ZXJwcmlzZXMxIjAgBgkqhkiG9w0BCQEWE21pY2hhZWxib3Jla0B3ZWIuZGUxHjAcBgNVBAMMFWhlaW1kYWxs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AdvYGtHUh0PRQgQ75ga9UZJsNpWUSi27SysG8DDp6%2B0eEZZt2V%2FN4A5Focpa4WPjQI8dqi76r656C%2FLHKaoHIQIC

Flags: needinfo?(spire666)

Looks like the subject field contains the following DN:

c=DE, s=BA, l=WUE, o=valhall enterprises, e=<redacted email>, cn=heimdall.valhall.tech, OID.2.5.29.17=IP:192.168.1.1,IP:192.168.50.1,IP:192.168.100.1,DNS:heimdall.valhall.tech,URI:https://heimdall.valhall.tech

Where the last part seems a bit fishy. I'm definitely not an expert on X.509 but I don't feel like that's supported syntax and in any case our certificate parser is tripping over it. I wonder what other cert viewers display for the subject here. April can probably speak more to this.

The easiest way to solve this in the short term is to just ignore undefined values here and avoid rendering them. Again, maybe this is actually valid and we need to fix pki.js to improve the parsing there.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: P2 → P3
Summary: about:certificate something went wrong → about:certificate failing on unknown entries in subject field

This is self signed and the last part has been added by me.
It worked for some months already with older versions of firefox ESR

This is a duplicate of: 1617458

When creating a certificate with OPNsense, it will put the alternate names not only in the Subject Alt Names extension field, but also in the subjectAltName attribute of the subject field. This is uncommon, but allowed by the spec.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.