Skip to content

Commit f5cbe34

Browse files
committed
provide a method for listing the trusted certs
1 parent f2e31ce commit f5cbe34

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

hubblestack/extmods/modules/signing.py

+6
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,9 @@ def verify(*targets, **kw):
5656

5757
return dict(HuS.verify_files(targets, mfname=mfname, sfname=sfname,
5858
public_crt=public_crt, ca_crt=ca_crt))
59+
60+
def enumerate():
61+
""" enumerate installed certificates """
62+
63+
x509 = HuS.X509AwareCertBucket()
64+
return [ ' '.join(x.split()[1:]) for x in x509.trusted ]

0 commit comments

Comments
 (0)