Closed Bug 1576982 Opened 5 years ago Closed 5 years ago

Broken PEM Encoding in new Certificate Viewer

Categories

(Firefox :: Security, defect)

70 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1571710
Tracking Status
firefox70 --- affected

People

(Reporter: wthayer, Unassigned)

References

(Blocks 1 open bug)

Details

Steps to reproduce in Nightly:

  1. Click lock icon --> Connection Details --> More Information --> View Certificate
  2. Copy encoded data under Miscellaneous section beginning with "-----BEGIN"
  3. Paste into https://tls-observatory.services.mozilla.com/static/certsplainer.html
  4. Result is an error. Should be a decoded certificate.

With the new viewer we appear to lose the ability to export a certificate, so we need to be able to cut & paste the PEM encoded certificate into a file or into tools like Certsplainer.

Blocks: cert-viewer

Also, please re-add the "Export" button that used to be available on the Certificate Viewer (it was at the bottom the Details section).

This bug needs to be fixed before the new Certificate Viewer goes into Release.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE

This PEM was never supposed to be there. It's a regression from Certainly Something: there should be two links, one two download the certificate, and one to download the chain.

  • Would it be helpful if we had links to useful tools like certsplainer etc. directly on the about:certificate page (I guess that would need certsplainer to allow sending the certificate via query parameter)? Are there other tools that we could link to?

  • Should we make it so that the certificate (and other fields) can be more easily copied, i.e. by adding a copy to clipboard button?

I can file these bugs if you think they are good ideas.

• Maybe someday? certsplainer is pretty rough as it is, so I'm not 100% certain we want to be linking to it until it's something that is nicely consumable by the public.

• That's a good amount of UX work; it should almost be entirely copy-pastable as it stands. Are you having trouble with that? We could maybe do some CSS magic that adds colons when you copy; I think that's possible.

You need to log in before you can comment on or make changes to this bug.