Skip to content

Instantly share code, notes, and snippets.

@wangkwok
wangkwok / newcert_python3.py
Last active April 3, 2021 13:45 — forked from Zeerg/newcert.py
Python script to generate CSR/Self Signed Cert. Needs pyOpenssl and python-whois
#!/usr/bin/python
"""
Thanks Zeerg and I have modified it to python3 compatible
"""
from OpenSSL import crypto
import os
import sys
import datetime
import whois