Skip to content

Instantly share code, notes, and snippets.

View salmanchauhan's full-sized avatar

Salmankhan Chauhan salmanchauhan

View GitHub Profile
@Zeerg
Zeerg / newcert.py
Last active August 29, 2025 13:49
Python script to generate CSR/Self Signed Cert. Needs pyOpenssl and python-whois
#!/usr/bin/python
from OpenSSL import crypto
import os
import sys
import datetime
import whois
#Variables
TYPE_RSA = crypto.TYPE_RSA
TYPE_DSA = crypto.TYPE_DSA