Skip to content

Instantly share code, notes, and snippets.

@strachg
strachg / util_SAML_cert_thumbprint.py
Last active June 22, 2020 23:59
Gitlab on prem requires a fairely manual setup process that includes pulling the cert thumbprint for the Identity provider out of the certificate embeded in the metadata.xml. This script can be used in a IaC config to automatically extract that out for you. In the future I might do some more work to pull more data out of the XML to insert into t…
'''
This script can be used to extract the idp cert thumbprint
from the metadata.xml provide when setuping up a SAML provider
usage: util_SAML_cert_thumbprint.py [-h] source_file
positional arguments:
source_file A SAML metadata.xml file
optional arguments: