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. 3 1380
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.
"ds" <pi*********@co mcast.net> wrote in message
news:11******** *************** *************** ***@news.megane tnews.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.
> > 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****@ActiveSt ate.com This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 files. Or at least, it's not
clear from the description of socket.ssl what it does if they're omitted.
However, urlopen has no way to specify such things. Nor should it - for
typical uses, a person simply trying to retrieve data from an ssl site...
|
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 server works OK.
I've heard, that P2.3 has SSL support included in himself and also, I was
trying P2.2 with pyOpenSSL wrappers and extensions, but unsuccesfuly...
So, could you give me a few lines of python code which makes such things:
|
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, self.PORT )
#con.set_debuglevel(10)
con.putrequest( "POST", "" )
con.putheader( "Content-Type", "text/xml" )
|
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 that contains your private key. certfile is a PEM formatted
certificate chain file.
On success, a new SSLObject is returned.
|
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 environment, only in
production on a cluster of 2 debian boxes with Apache2 MPM Worker w/ Mod
Python 3.13.
Does anybody have any ideas as to what could be causing this error?
Here is the full traceback:
| |
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 sites,at that time i want to get
the inforamtion and i ahve do some operations.How can i implement this
requirement? or What classes are supported in C#.Net? .Please give your
suggestion.This requirement is very urgent.
thanks in advance,...
|
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 KEY-----
MIICXgIBAAKBgQDKwLuk/UpICOnZvH3mf9rFQvCkDPA8XQZLpa80Z0liMVYu4GQT
<snip>
-----END RSA PRIVATE KEY-----
-----BEGIN CERTIFICATE-----
MIICkTCCAfqgAwIBAgICNqUwDQYJKoZIhvcNAQEFBQAwgZ8xCzAJBgNVBAYTAlVT
|
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 * 16) chars or less. if the length of
message is greater than 16384 an
OpenSSL.SSL.SysCallError: (-1, 'Unexpected EOF')
exception is raised. this is a port of code that exists in c++ and java
implementations where they are able to send...
|
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 enabled/configured. I just want mysql to use a maximum
of, let's say, 1GB of my /var partition
The log is /var/log/mysql/
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |