473,386 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

can't find socket.ssl() on win32

ds
i'm running under win2k trying to implement an ssl socket, and keep
getting the error
File "C:\Code\Python\ssl\NewsSrc.py", line 67, in connect
ssl = socket.ssl(sock, None, None)
AttributeError: 'module' object has no attribute 'ssl'
i'm running this under ActiveState version 2.2.2, but i have also tried
under ActiveState version 2.3 anyone have any ideas?

thanks in advance.
Dec 7 '05 #1
3 1364
ds wrote:
i'm running under win2k trying to implement an ssl socket, and keep
getting the error
File "C:\Code\Python\ssl\NewsSrc.py", line 67, in connect
ssl = socket.ssl(sock, None, None)
AttributeError: 'module' object has no attribute 'ssl'
i'm running this under ActiveState version 2.2.2, but i have also tried
under ActiveState version 2.3 anyone have any ideas?


IIRC socket.ssl wasn't available under Windows (because of it relying on the
OpenSSL libraries), but I can't seem to find any reference to documentation
at the moment... You can always use m2crypto which implements SSL sockets
under Unix and under Windows.

http://sandbox.rulemaker.net/ngps/m2/

HTH!

--- Heiko.
Dec 7 '05 #2

"ds" <pi*********@comcast.net> wrote in message
news:11*****************************************@n ews.meganetnews.com...
i'm running this under ActiveState version 2.2.2, but i have also tried
under ActiveState version 2.3 anyone have any ideas?


ActiveState don't ship crypto stuff because they don't want to jump
through the legal hoops. You can add it in or use a regular build.
Dec 7 '05 #3
> > i'm running this under ActiveState version 2.2.2, but i have also tried
under ActiveState version 2.3 anyone have any ideas?

[Richard Brodie wrote] ActiveState don't ship crypto stuff because they don't want to jump
through the legal hoops. You can add it in or use a regular build.


Slight modification there: ...because we are currently jumping through
the legal hoops...

But, yes, you are correct that ActivePython does not currently include
the _ssl extension because of crypto export restriction legal rules.
We've had a breakthrough here though (yeah!) and I'm hopeful that in the
not too distant future I'll be able to include SSL in ActivePython (and
other products I work on here at ActiveState).

Trent

--
Trent Mick
Tr****@ActiveState.com
Dec 7 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Gary Feldman | last post by:
I think I've found a deficiency in the design of urllib related to https. In order to complete an https connection, it appears that URLOpener and hence FancyURLOpener require the key and cert...
1
by: Krzysztof Pa¼ | last post by:
Hi, I want to make simple client in phyton, which would be able to communicate with Java server using SSL sockets. There is the Java clients, which is doing this - so I'm pretty sure, that Java...
1
by: lauras | last post by:
Hello, We are having an issue with Python SSL sockets using Apache and mod_python. When we try to get an SSL connection using the following code: con = httplib.HTTPSConnection( self.HOST,...
0
by: André Søreng | last post by:
I'm trying to create a SSL-enabled server in Python, and in the doc for the socket module: ssl(sock) Initiate a SSL connection over the socket sock. keyfile is the name of a PEM formatted file...
0
by: Huzaifa Tapal | last post by:
I am getting this error from python 2.3.5 when making secure socket connections from my mod_python based application. It is very odd because we cannot replicate this in the development...
6
by: TulasiKumar | last post by:
hi all, i have one requirement in my project.The requirement is i want to fix some domain sites in TcpIp like proxy servers behaviour.When ever end user passing the inforamtion of that domain...
4
by: Chris Curvey | last post by:
I need to use socket.ssl() to open a connection using key files. I have been provided with a text file called cert_key_pem.txt containing my keys that looks like this: -----BEGIN RSA PRIVATE...
1
by: Bryan | last post by:
i'm having some trouble this code which i hope someone can help me with. the following client side code works correctly if the length of the message being sent in the POST request is 16384 (1024 *...
0
by: Chrom_ | last post by:
Mysql is filling my /var partition because the log limit doesn't seem to be respected. I've tried many different settings in /etc/mysql/my.cnf but nothing works. Logrotate is not...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.