Expert Twisted by unknow

Expert Twisted by unknow

Author:unknow
Language: eng
Format: epub
ISBN: 9781484237427
Publisher: Apress


TLS

TLS (Transport Layer Security) is the latest version of what used to be called SSL (Secure Socket Layer). TLS is an encryption and key-exchange protocol that works on top of TCP.

TLS does two things:Encryption: communication using TLS is resistant to wire-taps.

Endpoint authentication: when using TLS, it is possible to verify we are talking to the endpoint we expect.

While the first one often is popular in explanation of the importance of TLS, the second one is even more important. It is possible that some WSGI applications hold little sensitive data: however, since they send HTML, JavaScript, and CSS to potentially vulnerable browsers, making sure that no malware is delivered over the lines is always important.

The way TLS authenticates endpoints is by checking certificates, signed by certificate authorities. In general, the two ways to get a certificate authority to sign a certificate are either to convince it that you are the legitimate endpoint, or to create your own certificate authority. While creating a real certificate authority is nigh impossible, this if often the preferred solution inside data centers, where the same person, or group, is responsible for both ends of the connection.

Assuming the key is in key.pem and the certificate is in cert.pem,$ python -m twisted web \

--port ssl:port=8443:privateKey=key.pem:certKey=cert.pem \

--wsgi wsgi_hello.application



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.