Re: What package to use for certificate manipulation (signing, hashing)

2012-12-15 Thread Nenad Cikic
I have managed to sign xml so I am reporting here in case some else needs this info.Also if someone more experienced see some possible improvment please leave a note. So my input is a pfx file. I am forced to use both pyopeenssl and m2crypto. I am using PyOpenssl to extract certificate and privat

What package to use for certificate manipulation (signing, hashing)

2012-12-13 Thread Nenad Cikic
Hello, I have my pfx file. I need to sign xml with this pfx using private key. I need to extract pem,issuer name,sb,subjectname which all I did with pyopenssl. I need to compute also md5 and sha-1. If I got it right pyopenssl can not sign or compute hash. Shall i use m2crypto or python-crypto or b

Re: Establishing Https connection

2012-12-11 Thread nenad . cikic
Many thanks, I will check it. Nenad -- http://mail.python.org/mailman/listinfo/python-list

Re: Create xml with elementtree ET and xml escaping

2012-12-11 Thread nenad . cikic
Il giorno martedì 11 dicembre 2012 20:59:54 UTC+1, MRAB ha scritto: > > Hello, I have posted the same in XML group but it seems pretty dead there > > so I will repost here. > > > > > > I am new to xml processing in python. > > > I am looking to create XML. Xml is not too difficult so I thought

Establishing Https connection

2012-12-11 Thread nenad . cikic
Hello, Once I get my xml populated I have to send it to web service. Should I use httplib? I am reading the docs and I have managed to open the connection with httplib.HTTPSConnection(host[, port[, key_file[, cert_file[, strict[, timeout[, source_address]]) After that i intend to use HTTPConn

Create xml with elementtree ET and xml escaping

2012-12-11 Thread nenad . cikic
Hello, I have posted the same in XML group but it seems pretty dead there so I will repost here. I am new to xml processing in python. I am looking to create XML. Xml is not too difficult so I thought to create it manually using ElementTree. First I noted that ET.toString does escape <>& but not