manually selecting and copying the advanced info in the certificate error dialog leads to improperly formatted certificates

NEW
Unassigned

Status

()

Firefox
Security
P3
normal
3 months ago
a month ago

People

(Reporter: keeler, Unassigned)

Tracking

55 Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

STR:
Visit a site with an untrusted certificate (e.g. https://wrong.host.badssl.com/ )
Click "advanced" and then click the error code ("SSL_ERROR_BAD_CERT_DOMAIN" for the given example)
Select the text for one certificate (from "-----BEGIN CERTIFICATE-----" to "-----END CERTIFICATE-----")
Ctrl+c
Ctrl+v somewhere else

Expected results:

-----BEGIN CERTIFICATE-----
MIIFSzCCBDOgAwIBAgIQTI4YcUs0516Nrvvo9kw6gjANBgkqhkiG9w0BAQsFADCB
kDELMAkGA1UEBhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4G
A1UEBxMHU2FsZm9yZDEaMBgGA1UEChMRQ09NT0RPIENBIExpbWl0ZWQxNjA0BgNV
BAMTLUNPTU9ETyBSU0EgRG9tYWluIFZhbGlkYXRpb24gU2VjdXJlIFNlcnZlciBD
QTAeFw0xNjA3MDcwMDAwMDBaFw0xNzA5MDUyMzU5NTlaMFkxITAfBgNVBAsTGERv
bWFpbiBDb250cm9sIFZhbGlkYXRlZDEdMBsGA1UECxMUUG9zaXRpdmVTU0wgV2ls
ZGNhcmQxFTATBgNVBAMMDCouYmFkc3NsLmNvbTCCASIwDQYJKoZIhvcNAQEBBQAD
ggEPADCCAQoCggEBAMIE7PiM7gTCs9hQ1XBYzJMY61yoaEmwIrX5lZ6xKyx2PmzA
S2BMTOqytMAPgLaw+XLJhgL5XEFdEyt/ccRLvOmULlA3pmccYYz2QULFRtMWhyef
dOsKnRFSJiFzbIRMeVXk0WvoBj1IFVKtsyjbqv9u/2CVSndrOfEk0TG23U3AxPxT
uW1CrbV8/q71FdIzSOciccfCFHpsKOo3St/qbLVytH5aohbcabFXRNsKEqveww9H
dFxBIuGa+RuT5q0iBikusbpJHAwnnqP7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gwRjA6BgsrBgEEAbIxAQIC BzArMCkGCCsGAQUFBwIBFh1odHRwczovL3NlY3VyZS5jb21vZG8uY29tL0NQUzAI BgZngQwBAgEwVAYDVR0fBE0wSzBJoEegRYZDaHR0cDovL2NybC5jb21vZG9jYS5j b20vQ09NT0RPUlNBRG9tYWluVmFsaWRhdGlvblNlY3VyZVNlcnZlckNBLmNybDCB hQYIKwYBBQUHAQEEeTB3ME8GCCsGAQUFBzAChkNodHRwOi8vY3J0LmNvbW9kb2Nh LmNvbS9DT01PRE9SU0FEb21haW5WYWxpZGF0aW9uU2VjdXJlU2VydmVyQ0EuY3J0 MCQGCCsGAQUFBzABhhhodHRwOi8vb2NzcC5jb21vZG9jYS5jb20wIwYDVR0RBBww GoIMKi5iYWRzc2wuY29tggpiYWRzc2wuY29tMA0GCSqGSIb3DQEBCwUAA4IBAQB1 SIOInFUkNzAH6yZoyHkcXK6aApq1UnVErKntWWXQxkcmBI1XiRYucRhImGgc9jH1 JkvogUSx/1xlPXhUlMOGnUiW6DKv4Y+UR743jMPtTZe7xio3cgE6j4KkNETExPhQ JEieGfDs4cYTRCa2ZeFiSYek9NjEOTx9QsikKlQFoNwK+CsilJN4Tmo2G9Ln6a6E 7RMdofeig4EDTJ4h+7+oMP7rAGixf7pd4l3/QR/W9aZciu+BgMjxUgAXndGWGn1e 0oOzgsI9RoOlHrQ2NTjEei7fC6GYY1gLHtBtgx/xck0JrJYaC+X2NEyrvLyZW4JZ 5mzT25jgzpU7z04Xw+46 -----END CERTIFICATE----- 

(not sure if the formatting will be preserved here, but we'll see...)
(Basically, the issue is that the manually-copied text has spaces and not line breaks.)
(Note that clicking "Copy text to clipboard" works as expected, but that copies everything, not just one certificate.)
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.