Postgres SHA256 fingerprints

89 views
Skip to first unread message

York Wangenheim

unread,
Mar 30, 2023, 2:53:46 AM3/30/23
to crt.sh

Hi there,

Is there anyway to use the SHA256 fingerprint to get a certificate from the Postgres client? 

 E.g, is it possible to do this query: https://crt.sh/?q=522D2806ACF58F58F26524D9DFF2D30B45065C7863CB828579969926344C1724+%09+ in the Postgres client? 

With regards,

York

r...@sectigo.com

unread,
Apr 11, 2023, 7:36:43 AM4/11/23
to crt.sh
Hi York.  Try these...

SELECT pem_cert(c.CERTIFICATE) FROM certificate c WHERE digest(c.CERTIFICATE, 'sha256') = E'\\x522D2806ACF58F58F26524D9DFF2D30B45065C7863CB828579969926344C1724';

SELECT x509_print(c.CERTIFICATE) FROM certificate c WHERE digest(c.CERTIFICATE, 'sha256') = E'\\x522D2806ACF58F58F26524D9DFF2D30B45065C7863CB828579969926344C1724';

Reply all
Reply to author
Forward
0 new messages