Skip to content

Instantly share code, notes, and snippets.

View alevikpes's full-sized avatar
💭
Available for hire

alevikpes alevikpes

💭
Available for hire
View GitHub Profile
@alevikpes
alevikpes / extract-certs.py
Last active August 16, 2017 12:01 — forked from apparentlymart/extract-certs.py
Python script to extract generated TLS certificates and keys from a Terraform state
#!/usr/bin/python3
import errno
import json
import os
def main():
tf_state_path = os.path.join(os.path.dirname(__file__), 'root.tfstate')
with open(tf_state_path, 'r') as f: