Add command to *cert to show active certificate fingerprint #497

Open
opened 2026-10-05 04:25:17 +02:00 by adam · 1 comment
Owner

Right now, in order to get the fingerprint of a user's loaded certificate, they need to parse it out manually by running openssl x509 -sha1 -noout -fingerprint -in cert.pem | sed -e 's/^.*=//;s/://g;y/ABCDEF/abcdef/'. It would be nice if the Cert module had a command (Show, maybe) that would print the fingerprint of the cert currently in use.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Right now, in order to get the fingerprint of a user's loaded certificate, they need to parse it out manually by running `openssl x509 -sha1 -noout -fingerprint -in cert.pem | sed -e 's/^.*=//;s/://g;y/ABCDEF/abcdef/'`. It would be nice if the Cert module had a command (`Show`, maybe) that would print the fingerprint of the cert currently in use. ## <bountysource-plugin> --- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/9360043-add-command-to-cert-to-show-active-certificate-fingerprint?utm_campaign=plugin&utm_content=tracker%2F1759&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1759&utm_medium=issues&utm_source=github). </bountysource-plugin> <!-- github-sync-id:60383993 -->
Author
Owner

And of course I completely forgot that you can always just run /whois on yourself and most servers will tell you the fingerprint you're using, so this probably isn't necessary. I'll leave this open so that you guys can decide if it might be useful anyway (e.g. so you can get the certificate fingerprint without being connected to a server or on servers that don't return it) or if you want to close it.

And of course I completely forgot that you can always just run `/whois` on yourself and most servers will tell you the fingerprint you're using, so this probably isn't necessary. I'll leave this open so that you guys can decide if it might be useful anyway (e.g. so you can get the certificate fingerprint without being connected to a server or on servers that don't return it) or if you want to close it. <!-- github-comment-id:77909878 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/znc#497