5.10 DETECT FAKE CHARLIES
EXERCISE 5.10 DETECT FAKE CHARLIES
Experiment with the preceding scripts to check out the various errors from trying to deceive Alice. Create a false issuer and sign the certificate with this private key. Have someone with the wrong private key present Charlie’s certificate. Make sure to understand all the different checks being performed in the code.
You will get an InvalidSignature
exception raised, when you try to verify a fake signature on a certificate.