OpenSSL in Python: Keys and Certificates

Guard The Center

Mi'kail Eli'yah
10 min readMar 5

--

Configuration

hash_algorithm = "sha256"
timestamp_epoch_time_start = 0
timestamp_epoch_time_end = 10*365*24*60*60
key_length_RSA = 2048
"""
10*365*24*60*60 = 315360000
GMT: Sunday, December 30, 1979 12:00:00 AM
0
GMT: Thursday, January 1, 1970 12:00:00 AM
"""
"""
import time
# Convert Epoch time to Unix Timestamp
epoch_time = 1644018562
unix_time = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(epoch_time))
print(f"Unix…

--

--

Mi'kail Eli'yah