473,396 Members | 2,057 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,396 software developers and data experts.

OpenSSL in Python

Hi to all,

What do I have to install to get the following code work (Win XP,
Python 2.4.2)
from OpenSSL import SSL
import config

KEY_FILE = config.SSL_KEY_FILE
CERT_FILE = config.SSL_CERT_FILE
----------------------------------

I've been looking for OpenSSL for python. I found pyOpenSSL, but it
requires the OpenSSL library, which I only found on
http://www.openssl.org/, but don't know how to install.

Other thing is the "config" module... I'm lost. Someone knows? :-S

My main purpose is to enable xml-rpc server over an SSL connection.

Thanks

Daniel

Oct 27 '05 #1
12 3310
dcrespo enlightened us with:
I've been looking for OpenSSL for python. I found pyOpenSSL, but it
requires the OpenSSL library, which I only found on
http://www.openssl.org/, but don't know how to install.


Ehm... wouldn't your question then not be more appropriate on the
OpenSSL newsgroup/mailinglist/forum/whatever?

Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Frank Zappa
Oct 28 '05 #2
> wouldn't your question then not be more appropriate on the
OpenSSL newsgroup/mailinglist/forum/whatever?


Well, I think that because python is the language where I want it to
run, I ask it right here.
OpenSSL is written in C, so they wont help me. I need the right
wrappers to that C library.

Thanks.

Nov 1 '05 #3
First, is the PYTHON OpenSSL C wrapper what I need to get running.
Second, if you don't know how to answer, then limit your opinion to
yourself.

Thanks.

Nov 1 '05 #4
dcrespo enlightened us with:
First, is the PYTHON OpenSSL C wrapper what I need to get running.
I think that first you have to get OpenSSL running. Only then can you
think about wrapping it.
Second, if you don't know how to answer, then limit your opinion to
yourself.


We all enjoy the freedom of speech. Nobody is forcing you to read my
posts. If you don't like them, you're very free to ignore them.

It's not smart to fend of the only person who bothered to answer your
cry for help. Chances are people don't like the way you treat the one
person that replied, hence won't offer help. If you need help, the
smart thing is to stay polite.

Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Frank Zappa
Nov 1 '05 #5
>>First, is the PYTHON OpenSSL C wrapper what I need to get running.


I think that first you have to get OpenSSL running. Only then can you
think about wrapping it.

I think Sybren is allright here. After installing openssl, pyopenssl
won't be a problem. So, if you want to install openssl, you could
download the binaries for windows (google for them) or you could compile
it from source, which is the best approach for this kind of libraries.
The last approach is out of the scope of this list as Sybren said. You
should try first to find the answer in the openssl documentation or in
its official list. Then if you aren't able to compile it, then you have
to ask there.

If on the other hand, you have already installed openssl, but the
pyopenssl fails to run, then you can first see if pyopenssl has a
mailing list and ask there. On the contrary, you can ask here.

Regards,
Josef

Nov 1 '05 #6
* dcrespo (2005-11-01 01:11 +0100)
wouldn't your question then not be more appropriate on the
OpenSSL newsgroup/mailinglist/forum/whatever?
Well, I think that because python is the language where I want it to
run, I ask it right here.


You might think again. Your problem is not related to Python in any
way.
OpenSSL is written in C, so they wont help me.
Who's "they"?
I need the right wrappers to that C library.


The "wrapper" is pyopenssl, right?

But anyway, your question in a FAQ:
http://www.openssl.org/support/faq.html#MISC4

Took me about ten seconds to find it...
Nov 1 '05 #7
* dcrespo (2005-11-01 01:24 +0100)
First, is the PYTHON OpenSSL C wrapper what I need to get running.
You want to install OpenSSL under Windows. Get a grip: that's not
related to Python in any way.
Second, if you don't know how to answer, then limit your opinion to
yourself.


You /got/ a sufficient answer. If you had followed Sybren's advice
you'd already got a solution...
Nov 1 '05 #8
* Thorsten Kampe (2005-11-01 09:36 +0100)
* dcrespo (2005-11-01 01:11 +0100)
wouldn't your question then not be more appropriate on the
OpenSSL newsgroup/mailinglist/forum/whatever?


Well, I think that because python is the language where I want it to
run, I ask it right here.


You might think again. Your problem is not related to Python in any
way.
OpenSSL is written in C, so they wont help me.


Who's "they"?


You mean (probably) that the developers won't help you installing
OpenSSL because you need it for Python?! Holy Sh**...

No one cares what you need it for. If you would need it for Ruby or
Perl it still would have nothing to do with Ruby or Perl.
Nov 1 '05 #9
dcrespo wrote:
Hi to all,

What do I have to install to get the following code work (Win XP,
Python 2.4.2)
from OpenSSL import SSL
import config

KEY_FILE = config.SSL_KEY_FILE
CERT_FILE = config.SSL_CERT_FILE
----------------------------------

I've been looking for OpenSSL for python. I found pyOpenSSL, but it
requires the OpenSSL library, which I only found on
http://www.openssl.org/, but don't know how to install.

Open source is very often distributed as source tarballs that contain
installation instructions. So:

Download archive - extract - read files named INSTALL, README, ...

Repeating the advice you have from some other posters:
You have to install both OpenSSL (the library) and
pyOpenSSL (so python can use the library).
Other thing is the "config" module... I'm lost. Someone knows? :-S

I'd guess "config" is local module related to your system setup.
Nothing with that name comes with Python or pyOpenSSL.
My main purpose is to enable xml-rpc server over an SSL connection.
After installing pyOpenSSL have a look at

pyOpenSSL-0.6/examples/SecureXMLRPCServer.py
Thanks

Daniel

I hope this helped a bit.
Nov 1 '05 #10
Hi,

Excuse me all of you for the way I answered. Sybren, and all of you,
accept my apology. I saw the Sybren's message yersterday late night in
a bad moment.

I'll visit the OpenSSL forum.

Thank you all.

Nov 1 '05 #11
dcrespo enlightened us with:
Excuse me all of you for the way I answered. Sybren, and all of you,
accept my apology. I saw the Sybren's message yersterday late night
in a bad moment.


Next time, don't visit Usenet in a bad moment.

Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Frank Zappa
Nov 1 '05 #12
Tu madre

Nov 1 '05 #13

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

Similar topics

0
by: User1001 | last post by:
I have been trying to enable/use specific OpenSSL extensions that I use in generating certificates manually, via PHP5 + php5-openssl module/extension. Filling out the "configargs" array with...
0
by: John Bergstrom | last post by:
Hello everyone! I wrote a simple perl program to encrypt a string using Crypt::OpenSSL::RSA. Everything as described in the module documentation. The public key is a valid X.509 encrypted...
2
by: Christopher Murtagh | last post by:
Greetings, I'm trying to build 7.3.4 and I've come across two problems, one during the configure and the other afterward. Problem 1) Trying to build with openssl support gives this: ...
17
by: cpptutor2000 | last post by:
Could some C guru please help me? I have a simple piece of code as: #include <stdio.h> #include <stdlib.h> #include <openssl/rand.h> int main(){ unsigned char temp; RAND_bytes(temp, 4);
1
by: laredotornado | last post by:
Hello, I downloaded PHP 4.4.4 and am trying to install for Apache 2 on Fedora Core 5. However when trying to configure with openssl, I get this error, configure: error: Cannot find...
4
by: Patrick | last post by:
Hello, I'm currently trying the OpenSSL Library, but I got some problems. I want to create a server and client application that communicate through the OpenSSL API, but this code doesn't work. I...
1
by: Kevin T. Ryan | last post by:
Hi All - I'm trying to compile Python on a Centos machine (RHEL) 3.8 for a hosting account that I just set up and I'm having 2 issues: 1. I ran into an issue with the "hashlib" module ...
4
by: Tan | last post by:
Hi folk, I'm trying to install latest OpenSSL version in VS2008 Express Edition on WinXP. I have downloaded and installed the redistributable for VC+ +2008 (including SP1), and also installed...
3
by: Marcin Jurczuk | last post by:
Hello, I'm fighting with Certificate Authority functionality with python I stuck on following problem: How to sign CSR using CA key and write resulted certificate. You can do it using following...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
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...

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.