Skip to content

Instantly share code, notes, and snippets.

@tmjvonboss
tmjvonboss / create_x.509_cert.py
Last active March 6, 2018 20:24 — forked from ril3y/create_x.509_cert.py
Python script that will generate a x.509 certificate
#!/usr/bin/env python
from OpenSSL import crypto
from os.path import exists, join
CERT_FILE = "myapp.crt"
KEY_FILE = "myapp.key"
def create_self_signed_cert(cert_dir):