Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.comp.lang.python > #6269
| From | Christopher Arndt <chris@chrisarndt.de> |
|---|---|
| Newsgroups | de.comp.lang.python |
| Subject | [Python-de] Re: ssl.wrap_socket? |
| Date | 2025-03-23 03:42 +0100 |
| Message-ID | <7d259392-b0cd-4ed8-81df-b2194f467db8@chrisarndt.de> (permalink) |
| References | <vrno65$k58$1@rusnews.informatik.uni-stuttgart.de> |
Am 23.03.25 um 02:29 schrieb Ulli Horlacher: > > sock = ssl.SSLContext.wrap_socket(sock) > > Ich hab da wohl was nicht verstanden. Wie gehts richtig? Du musst die wrap_socket Methode auf einer *Instanz* der Klasse SSLContext aufrufen. Diese Instanz erzeugst du am besten mit: context = ssl.create_default_context() Hier gibt es Beispielcode: https://docs.python.org/3/library/ssl.html#socket-creation Hdh, Chris
Back to de.comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar
ssl.wrap_socket? Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2025-03-23 01:29 +0000
[Python-de] Re: ssl.wrap_socket? Christopher Arndt <chris@chrisarndt.de> - 2025-03-23 03:42 +0100
Re: [Python-de] Re: ssl.wrap_socket? Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2025-03-23 09:11 +0000
Re: [Python-de] Re: ssl.wrap_socket? "Peter J. Holzer" <hjp-usenet4@hjp.at> - 2025-03-23 10:38 +0100
Re: [Python-de] Re: ssl.wrap_socket? Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2025-03-23 10:08 +0000
Re: [Python-de] Re: ssl.wrap_socket? Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2025-03-23 10:29 +0000
[Python-de] Re: ssl.wrap_socket? Hartmut Goebel <h.goebel@goebel-consult.de> - 2025-03-23 16:25 +0100
csiph-web