Code and report provided for an assignment in the "Security" course taken in the MSc in Computer Science and Engineering at Università degli Studi di Genova.
You can find the text of the assignment in "lab_x509_certificates.txt".
Here you can find Python program that takes, as command-line arguments, a sequences of filenames containing PEM encoded certificates, and:
- print a summary of each certificate (in particular, its: Issuer, Subject, Validity and whether the corresponding key can be used to sign other certificates)
- check their signatures
In this code, the input directory path (CERT_DIR) is set into the "Run Configuration" settings in PyCharm.