468,469 Members | 1,966 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,469 developers. It's quick & easy.

HTTPSConnection & Password


I'm using httplib to create a mutually authenticated HTTPS connection
with a server.

I create the connection as follows:

c = httplib.HTTPSConnection(uri, key_file = key, cert_file = cert)

However, because I am using a private key I keep getting asked to enter
the password to open that key every time I run the script.

I've had a dig around and can't seem to find a way of specifying the
password so that the user can supply it on the command line, or so I
can script/fully automate these connections. The ideal scenario would
be to be able to specify the password on the command line like in

How can I set the password for the private key so it doesn't keep
asking me for it?

Appologies if I've missed something obvious here.



p.s. I need to use httplib (rather than pyCurl) as I need to be able to
specify methods other than GET and POST in my requests to the server.

Aug 2 '05 #1
0 1147

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by John Victor | last post: by
2 posts views Thread by John Glista | last post: by
reply views Thread by Terry Kerr | last post: by
4 posts views Thread by Marc Poulhičs | last post: by
reply views Thread by Huzaifa Tapal | last post: by
George Lft
1 post views Thread by George Lft | last post: by
1 post views Thread by kmladenovski | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.