Two-way authenticated SSL communication
Back in mid 90's the beginning of the Internet era, very little part of the internet was encrypted because there were only few people on the internet at that time and fewer credit card details shared online.But as the internet grew in popularity new industries emerged such as online shopping and online banking which required data to be encrypted to keep it safe from intruders and made sure access was provided to authentic users only.That was when HTTPS was developed with the help of SSL .Which sits above transport layer and below application layer.
- Using pyopenssl & urllib you can mention a valid https website
- After which ssl.get_server_certificate((addr, port), ssl_version=3) obtains the certificate where ssl_version mentions the version of ssl being used
- Then using crypto.load_certificate(crypto.FILETYPE_PEM, cert) we get the X.509 certificate
Cipherspec suite:
Output: