Skip to content

Instantly share code, notes, and snippets.

View Talismanic's full-sized avatar

Mohammed Mehedi Hasan Talismanic

View GitHub Profile
@Talismanic
Talismanic / x-509-sample.py
Last active September 1, 2023 16:55
Sample_Implementation_Of_X_509
#generating certificate and private key
from cryptography import x509
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import serialization, hashes
from cryptography.hazmat.primitives.asymmetric import rsa
from cryptography.x509.oid import NameOID
import datetime
# Generate Private Key