Changeset 110
- Timestamp:
- 07/22/16 21:41:13 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/bletchley/ssltls.py
r109 r110 21 21 import argparse 22 22 import traceback 23 import random 23 24 import socket 24 25 try: … … 196 197 197 198 199 def randomizeSerialNumber(certificate): 200 certificate.set_serial_number(random.randint(0,2**64)) 201 198 202 def genFakeCertificateChain(cert_chain): 199 203 ret_val = [] … … 209 213 c.set_pubkey(k) 210 214 removePeskyExtensions(c) 215 randomizeSerialNumber(c) 211 216 c.sign(k, getDigestAlgorithm(c)) 212 217 ret_val.append(c) … … 217 222 c.set_pubkey(k) 218 223 removePeskyExtensions(c) 224 randomizeSerialNumber(c) 219 225 c.sign(prev, getDigestAlgorithm(c)) 220 226 prev = k
Note: See TracChangeset
for help on using the changeset viewer.