Giter Site home page Giter Site logo

py-wsse's Introduction

py-wsse

Test status

Test coverage

Documentation Status

Latest version

WS-Security (SOAP WSSE) support for Python, including an optional Suds plugin.

py-wsse supports Python 2.7, 3.3, and 3.4.

Getting Help

Documentation for py-wsse is available at https://py-wsse.readthedocs.org/

This app is available on PyPI and can be installed with pip install py-wsse (or pip install py-wsse[suds] to also pull in Suds as a dependency).

TODO

Tests!

Contributing

See the contributing docs.

py-wsse's People

Contributors

brad avatar carljm avatar grokcode avatar vstoykov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

py-wsse's Issues

Encrypt/Decrypt not working (maybe wrong usage?)

I created a simple xml file, generated a self-signed certificate and key:

openssl req -x509 -nodes -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365

then tried to encrypt it and then decrypt the encrypted data:

from wsse import encryption
plain = open('plain.xml','rb').read()
encr = encryption.encrypt(plain,'test/cert.pem')
print(encryption.decrypt(envelope=encr,keyfile='test/key.pem'))

The result is this error:

Traceback (most recent call last):
  File "/private/var/www/html/apps/moh/test.py", line 9, in <module>
    print(encryption.decrypt(envelope=encrd,keyfile='test/key.pem'))
  File "/private/var/www/html/apps/moh/wsse/encryption.py", line 196, in decrypt
    )[0]
IndexError: list index out of range

plain.xml:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://hcv.health.ontario.ca/" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<SOAP-ENV:Header>
		<wsse:Security mustUnderstand="true">
			<wsse:UsernameToken>
				<wsse:Username>test_user</wsse:Username>
				<wsse:Password>test_pass</wsse:Password>
			</wsse:UsernameToken>
			<wsu:Timestamp>
				<wsu:Created>2017-07-18T01:32:47.577170+00:00</wsu:Created>
				<wsu:Expires>2017-07-18T01:34:17.577170+00:00</wsu:Expires>
			</wsu:Timestamp>
		</wsse:Security>
	</SOAP-ENV:Header>
	<ns0:Body>
		<ns1:validate>
			<requests>
				<hcvRequest>
					<healthNumber>9999999999</healthNumber>
					<versionCode>YX</versionCode>
				</hcvRequest>
			</requests>
			<locale>en</locale>
		</ns1:validate>
	</ns0:Body>
</SOAP-ENV:Envelope>

undefined symbol: _Py_ZeroStruct

Hi, i install the lib and use the exaple py-wsse/test/test_signing.py in my function lambda but i run the script say this -> /var/task/lxml/etree.so: undefined symbol: _Py_ZeroStruct.

I install the package lxml

error: pkg-config is not installed

C:>pip install py-wsse
Collecting py-wsse
Using cached py-wsse-0.1.tar.gz
Collecting xmlsec>=0.3.1.orcas1 (from py-wsse)
Using cached xmlsec-0.6.1.tar.gz
Complete output from command python setup.py egg_info:
zip_safe flag not set; analyzing archive contents...
Installed c:\users\andrej\appdata\local\temp\pip-build-9oylxw3_\xmlsec.eggs\setuptools_cy
running egg_info
creating pip-egg-info\xmlsec.egg-info
writing pip-egg-info\xmlsec.egg-info\PKG-INFO
writing requirements to pip-egg-info\xmlsec.egg-info\requires.txt
writing dependency_links to pip-egg-info\xmlsec.egg-info\dependency_links.txt
error: pkg-config is not installed
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Andrej\AppData\Local\Temp\pip-build-9oylxw3_\xmlsec\

documentation py-wsse

Where can I find documetation or examples for pywsse.
I need acces to SOAP web services with .pfx certificate. How can I do this?

Move to suds-community?

๐Ÿ‘‹ hello! This library looks like a useful extension to suds. I'm a maintainer of https://github.com/suds-community/suds and was curious if you'd be open to moving this library to the suds-community organization where others could help maintain it.

Please let me know what you think!

py-wsse installation issue in windows 10 64 bit

I was unable to install py-wsse with
pip install py-wsse
command

bellow is the error occurred

`Collecting py-wsse
Collecting xmlsec>=0.3.1.orcas1 (from py-wsse)
Using cached xmlsec-1.3.3.tar.gz
Collecting pyOpenSSL>=0.15.1 (from py-wsse)
Using cached pyOpenSSL-17.5.0-py2.py3-none-any.whl
Requirement already satisfied: lxml>=3.4.4 in c:\python27\lib\site-packages (from py-wsse)
Requirement already satisfied: pkgconfig in c:\python27\lib\site-packages (from xmlsec>=0.3.1.orcas1->py-wsse)
Collecting cryptography>=2.1.4 (from pyOpenSSL>=0.15.1->py-wsse)
Using cached cryptography-2.2.2-cp27-cp27m-win32.whl
Collecting six>=1.5.2 (from pyOpenSSL>=0.15.1->py-wsse)
Using cached six-1.11.0-py2.py3-none-any.whl
Collecting cffi>=1.7; platform_python_implementation != "PyPy" (from cryptography>=2.1.4->pyOpenSSL>=0.15.1->py-wsse)
Using cached cffi-1.11.5-cp27-cp27m-win32.whl
Collecting enum34; python_version < "3" (from cryptography>=2.1.4->pyOpenSSL>=0.15.1->py-wsse)
Using cached enum34-1.1.6-py2-none-any.whl
Collecting asn1crypto>=0.21.0 (from cryptography>=2.1.4->pyOpenSSL>=0.15.1->py-wsse)
Using cached asn1crypto-0.24.0-py2.py3-none-any.whl
Collecting idna>=2.1 (from cryptography>=2.1.4->pyOpenSSL>=0.15.1->py-wsse)
Using cached idna-2.6-py2.py3-none-any.whl
Collecting ipaddress; python_version < "3" (from cryptography>=2.1.4->pyOpenSSL>=0.15.1->py-wsse)
Collecting pycparser (from cffi>=1.7; platform_python_implementation != "PyPy"->cryptography>=2.1.4->pyOpenSSL>=0.15.1->py-wsse)
Installing collected packages: xmlsec, six, pycparser, cffi, enum34, asn1crypto, idna, ipaddress, cryptography, pyOpenSSL, py-wsse
Running setup.py install for xmlsec ... error
Complete output from command c:\python27\python.exe -u -c "import setuptools, tokenize;file='c:\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record c:\users\mjdev\appdata\local\temp\pip-5z8tde-record\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
Retrieving "https://ci.appveyor.com/api/buildjobs/tdpx6rprr5431ec9/artifacts/iconv-1.14.vs2008.win32.zip" to "build/extra\iconv-1.14.vs2008.win32.zip"
Unpacking iconv-1.14.vs2008.win32.zip into build/extra
Retrieving "https://ci.appveyor.com/api/buildjobs/tdpx6rprr5431ec9/artifacts/xmlsec-1.2.24.vs2008.win32.zip" to "build/extra\xmlsec-1.2.24.vs2008.win32.zip"
Unpacking xmlsec-1.2.24.vs2008.win32.zip into build/extra
Retrieving "https://ci.appveyor.com/api/buildjobs/tdpx6rprr5431ec9/artifacts/libxml2-2.9.4.vs2008.win32.zip" to "build/extra\libxml2-2.9.4.vs2008.win32.zip"
Unpacking libxml2-2.9.4.vs2008.win32.zip into build/extra
Retrieving "https://ci.appveyor.com/api/buildjobs/tdpx6rprr5431ec9/artifacts/zlib-1.2.8.vs2008.win32.zip" to "build/extra\zlib-1.2.8.vs2008.win32.zip"
Unpacking zlib-1.2.8.vs2008.win32.zip into build/extra
Retrieving "https://ci.appveyor.com/api/buildjobs/tdpx6rprr5431ec9/artifacts/openssl-1.0.1.vs2008.win32.zip" to "build/extra\openssl-1.0.1.vs2008.win32.zip"
Unpacking openssl-1.0.1.vs2008.win32.zip into build/extra
Retrieving "https://ci.appveyor.com/api/buildjobs/tdpx6rprr5431ec9/artifacts/libxslt-1.1.29.vs2008.win32.zip" to "build/extra\libxslt-1.1.29.vs2008.win32.zip"
Unpacking libxslt-1.1.29.vs2008.win32.zip into build/extra
building 'xmlsec' extension
creating build\temp.win32-2.7
creating build\temp.win32-2.7\Release
creating build\temp.win32-2.7\Release\users
creating build\temp.win32-2.7\Release\users\mjdev
creating build\temp.win32-2.7\Release\users\mjdev\appdata
creating build\temp.win32-2.7\Release\users\mjdev\appdata\local
creating build\temp.win32-2.7\Release\users\mjdev\appdata\local\temp
creating build\temp.win32-2.7\Release\users\mjdev\appdata\local\temp\pip-build-yr1ken
creating build\temp.win32-2.7\Release\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec
creating build\temp.win32-2.7\Release\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\src
C:\Users\mjdev\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DMODULE_NAME=xmlsec -DMODULE_VERSION=1.3.3 -DXMLSEC_CRYPTO="openssl" -D__XMLSEC_FUNCTION__=FUNCTION -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_XKMS=1 -DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_CRYPTO_OPENSSL=1 -DUNICODE=1 -D_UNICODE=1 -DLIBXML_ICONV_ENABLED=1 -DLIBXML_STATIC=1 -DLIBXSLT_STATIC=1 -DXMLSEC_STATIC=1 -Dinline=inline -Ibuild/extra\iconv-1.14.vs2008.win32\include -Ibuild/extra\xmlsec-1.2.24.vs2008.win32\include -Ibuild/extra\libxml2-2.9.4.vs2008.win32\include -Ibuild/extra\zlib-1.2.8.vs2008.win32\include -Ibuild/extra\openssl-1.0.1.vs2008.win32\include -Ibuild/extra\libxslt-1.1.29.vs2008.win32\include -Ic:\python27\lib\site-packages\lxml\includes -Ic:\python27\lib\site-packages\lxml -Ic:\python27\lib\site-packages\lxml\includes\libexslt -Ic:\python27\lib\site-packages\lxml\includes\libxml -Ic:\python27\lib\site-packages\lxml\includes\libxslt -Ic:\python27\include -Ic:\python27\PC /Tcc:\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\src\constants.c /Fobuild\temp.win32-2.7\Release\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\src\constants.obj /Zi -Os
constants.c
c:\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\build\extra\libxml2-2.9.4.vs2008.win32\include\libxml/xmlversion.h(277) : warning C4005: 'LIBXML_ICONV_ENABLED' : macro redefinition
command-line arguments : see previous definition of 'LIBXML_ICONV_ENABLED'
c:\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\build\extra\xmlsec-1.2.24.vs2008.win32\include\xmlsec/xmlsec.h(99) : warning C4005: 'XMLSEC_CRYPTO' : macro redefinition
command-line arguments : see previous definition of 'XMLSEC_CRYPTO'
C:\Users\mjdev\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DMODULE_NAME=xmlsec -DMODULE_VERSION=1.3.3 -DXMLSEC_CRYPTO="openssl" -D__XMLSEC_FUNCTION
=FUNCTION -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_XKMS=1 -DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_CRYPTO_OPENSSL=1 -DUNICODE=1 -D_UNICODE=1 -DLIBXML_ICONV_ENABLED=1 -DLIBXML_STATIC=1 -DLIBXSLT_STATIC=1 -DXMLSEC_STATIC=1 -Dinline=inline -Ibuild/extra\iconv-1.14.vs2008.win32\include -Ibuild/extra\xmlsec-1.2.24.vs2008.win32\include -Ibuild/extra\libxml2-2.9.4.vs2008.win32\include -Ibuild/extra\zlib-1.2.8.vs2008.win32\include -Ibuild/extra\openssl-1.0.1.vs2008.win32\include -Ibuild/extra\libxslt-1.1.29.vs2008.win32\include -Ic:\python27\lib\site-packages\lxml\includes -Ic:\python27\lib\site-packages\lxml -Ic:\python27\lib\site-packages\lxml\includes\libexslt -Ic:\python27\lib\site-packages\lxml\includes\libxml -Ic:\python27\lib\site-packages\lxml\includes\libxslt -Ic:\python27\include -Ic:\python27\PC /Tcc:\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\src\ds.c /Fobuild\temp.win32-2.7\Release\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\src\ds.obj /Zi -Os
ds.c
c:\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\build\extra\libxml2-2.9.4.vs2008.win32\include\libxml/xmlversion.h(277) : warning C4005: 'LIBXML_ICONV_ENABLED' : macro redefinition
command-line arguments : see previous definition of 'LIBXML_ICONV_ENABLED'
c:\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\build\extra\xmlsec-1.2.24.vs2008.win32\include\xmlsec/xmlsec.h(99) : warning C4005: 'XMLSEC_CRYPTO' : macro redefinition
command-line arguments : see previous definition of 'XMLSEC_CRYPTO'
C:\Users\mjdev\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DMODULE_NAME=xmlsec -DMODULE_VERSION=1.3.3 -DXMLSEC_CRYPTO="openssl" -D__XMLSEC_FUNCTION
=FUNCTION -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_XKMS=1 -DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_CRYPTO_OPENSSL=1 -DUNICODE=1 -D_UNICODE=1 -DLIBXML_ICONV_ENABLED=1 -DLIBXML_STATIC=1 -DLIBXSLT_STATIC=1 -DXMLSEC_STATIC=1 -Dinline=inline -Ibuild/extra\iconv-1.14.vs2008.win32\include -Ibuild/extra\xmlsec-1.2.24.vs2008.win32\include -Ibuild/extra\libxml2-2.9.4.vs2008.win32\include -Ibuild/extra\zlib-1.2.8.vs2008.win32\include -Ibuild/extra\openssl-1.0.1.vs2008.win32\include -Ibuild/extra\libxslt-1.1.29.vs2008.win32\include -Ic:\python27\lib\site-packages\lxml\includes -Ic:\python27\lib\site-packages\lxml -Ic:\python27\lib\site-packages\lxml\includes\libexslt -Ic:\python27\lib\site-packages\lxml\includes\libxml -Ic:\python27\lib\site-packages\lxml\includes\libxslt -Ic:\python27\include -Ic:\python27\PC /Tcc:\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\src\enc.c /Fobuild\temp.win32-2.7\Release\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\src\enc.obj /Zi -Os
enc.c
c:\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\build\extra\libxml2-2.9.4.vs2008.win32\include\libxml/xmlversion.h(277) : warning C4005: 'LIBXML_ICONV_ENABLED' : macro redefinition
command-line arguments : see previous definition of 'LIBXML_ICONV_ENABLED'
c:\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\build\extra\xmlsec-1.2.24.vs2008.win32\include\xmlsec/xmlsec.h(99) : warning C4005: 'XMLSEC_CRYPTO' : macro redefinition
command-line arguments : see previous definition of 'XMLSEC_CRYPTO'
C:\Users\mjdev\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DMODULE_NAME=xmlsec -DMODULE_VERSION=1.3.3 -DXMLSEC_CRYPTO="openssl" -D__XMLSEC_FUNCTION
=FUNCTION -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_XKMS=1 -DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_CRYPTO_OPENSSL=1 -DUNICODE=1 -D_UNICODE=1 -DLIBXML_ICONV_ENABLED=1 -DLIBXML_STATIC=1 -DLIBXSLT_STATIC=1 -DXMLSEC_STATIC=1 -Dinline=inline -Ibuild/extra\iconv-1.14.vs2008.win32\include -Ibuild/extra\xmlsec-1.2.24.vs2008.win32\include -Ibuild/extra\libxml2-2.9.4.vs2008.win32\include -Ibuild/extra\zlib-1.2.8.vs2008.win32\include -Ibuild/extra\openssl-1.0.1.vs2008.win32\include -Ibuild/extra\libxslt-1.1.29.vs2008.win32\include -Ic:\python27\lib\site-packages\lxml\includes -Ic:\python27\lib\site-packages\lxml -Ic:\python27\lib\site-packages\lxml\includes\libexslt -Ic:\python27\lib\site-packages\lxml\includes\libxml -Ic:\python27\lib\site-packages\lxml\includes\libxslt -Ic:\python27\include -Ic:\python27\PC /Tcc:\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\src\exception.c /Fobuild\temp.win32-2.7\Release\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\src\exception.obj /Zi -Os
exception.c
c:\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\build\extra\libxml2-2.9.4.vs2008.win32\include\libxml/xmlversion.h(277) : warning C4005: 'LIBXML_ICONV_ENABLED' : macro redefinition
command-line arguments : see previous definition of 'LIBXML_ICONV_ENABLED'
c:\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\build\extra\xmlsec-1.2.24.vs2008.win32\include\xmlsec/xmlsec.h(99) : warning C4005: 'XMLSEC_CRYPTO' : macro redefinition
command-line arguments : see previous definition of 'XMLSEC_CRYPTO'
C:\Users\mjdev\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DMODULE_NAME=xmlsec -DMODULE_VERSION=1.3.3 -DXMLSEC_CRYPTO="openssl" -D__XMLSEC_FUNCTION
=FUNCTION -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_XKMS=1 -DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_CRYPTO_OPENSSL=1 -DUNICODE=1 -D_UNICODE=1 -DLIBXML_ICONV_ENABLED=1 -DLIBXML_STATIC=1 -DLIBXSLT_STATIC=1 -DXMLSEC_STATIC=1 -Dinline=inline -Ibuild/extra\iconv-1.14.vs2008.win32\include -Ibuild/extra\xmlsec-1.2.24.vs2008.win32\include -Ibuild/extra\libxml2-2.9.4.vs2008.win32\include -Ibuild/extra\zlib-1.2.8.vs2008.win32\include -Ibuild/extra\openssl-1.0.1.vs2008.win32\include -Ibuild/extra\libxslt-1.1.29.vs2008.win32\include -Ic:\python27\lib\site-packages\lxml\includes -Ic:\python27\lib\site-packages\lxml -Ic:\python27\lib\site-packages\lxml\includes\libexslt -Ic:\python27\lib\site-packages\lxml\includes\libxml -Ic:\python27\lib\site-packages\lxml\includes\libxslt -Ic:\python27\include -Ic:\python27\PC /Tcc:\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\src\keys.c /Fobuild\temp.win32-2.7\Release\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\src\keys.obj /Zi -Os
keys.c
c:\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\build\extra\libxml2-2.9.4.vs2008.win32\include\libxml/xmlversion.h(277) : warning C4005: 'LIBXML_ICONV_ENABLED' : macro redefinition
command-line arguments : see previous definition of 'LIBXML_ICONV_ENABLED'
c:\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\build\extra\xmlsec-1.2.24.vs2008.win32\include\xmlsec/xmlsec.h(99) : warning C4005: 'XMLSEC_CRYPTO' : macro redefinition
command-line arguments : see previous definition of 'XMLSEC_CRYPTO'
C:\Users\mjdev\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DMODULE_NAME=xmlsec -DMODULE_VERSION=1.3.3 -DXMLSEC_CRYPTO="openssl" -D__XMLSEC_FUNCTION
=FUNCTION -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_XKMS=1 -DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_CRYPTO_OPENSSL=1 -DUNICODE=1 -D_UNICODE=1 -DLIBXML_ICONV_ENABLED=1 -DLIBXML_STATIC=1 -DLIBXSLT_STATIC=1 -DXMLSEC_STATIC=1 -Dinline=inline -Ibuild/extra\iconv-1.14.vs2008.win32\include -Ibuild/extra\xmlsec-1.2.24.vs2008.win32\include -Ibuild/extra\libxml2-2.9.4.vs2008.win32\include -Ibuild/extra\zlib-1.2.8.vs2008.win32\include -Ibuild/extra\openssl-1.0.1.vs2008.win32\include -Ibuild/extra\libxslt-1.1.29.vs2008.win32\include -Ic:\python27\lib\site-packages\lxml\includes -Ic:\python27\lib\site-packages\lxml -Ic:\python27\lib\site-packages\lxml\includes\libexslt -Ic:\python27\lib\site-packages\lxml\includes\libxml -Ic:\python27\lib\site-packages\lxml\includes\libxslt -Ic:\python27\include -Ic:\python27\PC /Tcc:\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\src\lxml.c /Fobuild\temp.win32-2.7\Release\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\src\lxml.obj /Zi -Os
lxml.c
c:\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\build\extra\libxml2-2.9.4.vs2008.win32\include\libxml/xmlversion.h(277) : warning C4005: 'LIBXML_ICONV_ENABLED' : macro redefinition
command-line arguments : see previous definition of 'LIBXML_ICONV_ENABLED'
C:\Users\mjdev\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DMODULE_NAME=xmlsec -DMODULE_VERSION=1.3.3 -DXMLSEC_CRYPTO="openssl" -D__XMLSEC_FUNCTION
=FUNCTION -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_XKMS=1 -DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_CRYPTO_OPENSSL=1 -DUNICODE=1 -D_UNICODE=1 -DLIBXML_ICONV_ENABLED=1 -DLIBXML_STATIC=1 -DLIBXSLT_STATIC=1 -DXMLSEC_STATIC=1 -Dinline=inline -Ibuild/extra\iconv-1.14.vs2008.win32\include -Ibuild/extra\xmlsec-1.2.24.vs2008.win32\include -Ibuild/extra\libxml2-2.9.4.vs2008.win32\include -Ibuild/extra\zlib-1.2.8.vs2008.win32\include -Ibuild/extra\openssl-1.0.1.vs2008.win32\include -Ibuild/extra\libxslt-1.1.29.vs2008.win32\include -Ic:\python27\lib\site-packages\lxml\includes -Ic:\python27\lib\site-packages\lxml -Ic:\python27\lib\site-packages\lxml\includes\libexslt -Ic:\python27\lib\site-packages\lxml\includes\libxml -Ic:\python27\lib\site-packages\lxml\includes\libxslt -Ic:\python27\include -Ic:\python27\PC /Tcc:\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\src\main.c /Fobuild\temp.win32-2.7\Release\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\src\main.obj /Zi -Os
main.c
c:\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\build\extra\libxml2-2.9.4.vs2008.win32\include\libxml/xmlversion.h(277) : warning C4005: 'LIBXML_ICONV_ENABLED' : macro redefinition
command-line arguments : see previous definition of 'LIBXML_ICONV_ENABLED'
c:\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\build\extra\xmlsec-1.2.24.vs2008.win32\include\xmlsec/xmlsec.h(99) : warning C4005: 'XMLSEC_CRYPTO' : macro redefinition
command-line arguments : see previous definition of 'XMLSEC_CRYPTO'
C:\Users\mjdev\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DMODULE_NAME=xmlsec -DMODULE_VERSION=1.3.3 -DXMLSEC_CRYPTO="openssl" -D__XMLSEC_FUNCTION
=FUNCTION -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_XKMS=1 -DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_CRYPTO_OPENSSL=1 -DUNICODE=1 -D_UNICODE=1 -DLIBXML_ICONV_ENABLED=1 -DLIBXML_STATIC=1 -DLIBXSLT_STATIC=1 -DXMLSEC_STATIC=1 -Dinline=inline -Ibuild/extra\iconv-1.14.vs2008.win32\include -Ibuild/extra\xmlsec-1.2.24.vs2008.win32\include -Ibuild/extra\libxml2-2.9.4.vs2008.win32\include -Ibuild/extra\zlib-1.2.8.vs2008.win32\include -Ibuild/extra\openssl-1.0.1.vs2008.win32\include -Ibuild/extra\libxslt-1.1.29.vs2008.win32\include -Ic:\python27\lib\site-packages\lxml\includes -Ic:\python27\lib\site-packages\lxml -Ic:\python27\lib\site-packages\lxml\includes\libexslt -Ic:\python27\lib\site-packages\lxml\includes\libxml -Ic:\python27\lib\site-packages\lxml\includes\libxslt -Ic:\python27\include -Ic:\python27\PC /Tcc:\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\src\template.c /Fobuild\temp.win32-2.7\Release\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\src\template.obj /Zi -Os
template.c
c:\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\build\extra\libxml2-2.9.4.vs2008.win32\include\libxml/xmlversion.h(277) : warning C4005: 'LIBXML_ICONV_ENABLED' : macro redefinition
command-line arguments : see previous definition of 'LIBXML_ICONV_ENABLED'
c:\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\build\extra\xmlsec-1.2.24.vs2008.win32\include\xmlsec/xmlsec.h(99) : warning C4005: 'XMLSEC_CRYPTO' : macro redefinition
command-line arguments : see previous definition of 'XMLSEC_CRYPTO'
C:\Users\mjdev\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DMODULE_NAME=xmlsec -DMODULE_VERSION=1.3.3 -DXMLSEC_CRYPTO="openssl" -D__XMLSEC_FUNCTION
=FUNCTION -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_XKMS=1 -DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_CRYPTO_OPENSSL=1 -DUNICODE=1 -D_UNICODE=1 -DLIBXML_ICONV_ENABLED=1 -DLIBXML_STATIC=1 -DLIBXSLT_STATIC=1 -DXMLSEC_STATIC=1 -Dinline=inline -Ibuild/extra\iconv-1.14.vs2008.win32\include -Ibuild/extra\xmlsec-1.2.24.vs2008.win32\include -Ibuild/extra\libxml2-2.9.4.vs2008.win32\include -Ibuild/extra\zlib-1.2.8.vs2008.win32\include -Ibuild/extra\openssl-1.0.1.vs2008.win32\include -Ibuild/extra\libxslt-1.1.29.vs2008.win32\include -Ic:\python27\lib\site-packages\lxml\includes -Ic:\python27\lib\site-packages\lxml -Ic:\python27\lib\site-packages\lxml\includes\libexslt -Ic:\python27\lib\site-packages\lxml\includes\libxml -Ic:\python27\lib\site-packages\lxml\includes\libxslt -Ic:\python27\include -Ic:\python27\PC /Tcc:\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\src\tree.c /Fobuild\temp.win32-2.7\Release\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\src\tree.obj /Zi -Os
tree.c
c:\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\build\extra\libxml2-2.9.4.vs2008.win32\include\libxml/xmlversion.h(277) : warning C4005: 'LIBXML_ICONV_ENABLED' : macro redefinition
command-line arguments : see previous definition of 'LIBXML_ICONV_ENABLED'
c:\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\build\extra\xmlsec-1.2.24.vs2008.win32\include\xmlsec/xmlsec.h(99) : warning C4005: 'XMLSEC_CRYPTO' : macro redefinition
command-line arguments : see previous definition of 'XMLSEC_CRYPTO'
c:\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\src\tree.c(177) : warning C4090: 'function' : different 'const' qualifiers
c:\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\src\tree.c(183) : warning C4090: 'function' : different 'const' qualifiers
C:\Users\mjdev\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DMODULE_NAME=xmlsec -DMODULE_VERSION=1.3.3 -DXMLSEC_CRYPTO="openssl" -D__XMLSEC_FUNCTION
=FUNCTION -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_XKMS=1 -DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_CRYPTO_OPENSSL=1 -DUNICODE=1 -D_UNICODE=1 -DLIBXML_ICONV_ENABLED=1 -DLIBXML_STATIC=1 -DLIBXSLT_STATIC=1 -DXMLSEC_STATIC=1 -Dinline=__inline -Ibuild/extra\iconv-1.14.vs2008.win32\include -Ibuild/extra\xmlsec-1.2.24.vs2008.win32\include -Ibuild/extra\libxml2-2.9.4.vs2008.win32\include -Ibuild/extra\zlib-1.2.8.vs2008.win32\include -Ibuild/extra\openssl-1.0.1.vs2008.win32\include -Ibuild/extra\libxslt-1.1.29.vs2008.win32\include -Ic:\python27\lib\site-packages\lxml\includes -Ic:\python27\lib\site-packages\lxml -Ic:\python27\lib\site-packages\lxml\includes\libexslt -Ic:\python27\lib\site-packages\lxml\includes\libxml -Ic:\python27\lib\site-packages\lxml\includes\libxslt -Ic:\python27\include -Ic:\python27\PC /Tcc:\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\src\utils.c /Fobuild\temp.win32-2.7\Release\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\src\utils.obj /Zi -Os
utils.c
creating build\lib.win32-2.7
C:\Users\mjdev\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:build/extra\iconv-1.14.vs2008.win32\lib /LIBPATH:build/extra\xmlsec-1.2.24.vs2008.win32\lib /LIBPATH:build/extra\libxml2-2.9.4.vs2008.win32\lib /LIBPATH:build/extra\zlib-1.2.8.vs2008.win32\lib /LIBPATH:build/extra\openssl-1.0.1.vs2008.win32\lib /LIBPATH:build/extra\libxslt-1.1.29.vs2008.win32\lib /LIBPATH:c:\python27\libs /LIBPATH:c:\python27\PCbuild /LIBPATH:c:\python27\PC\VS9.0 libxmlsec_a.lib libxmlsec-openssl_a.lib libeay32.lib iconv_a.lib libxslt_a.lib libexslt_a.lib libxml2_a.lib zlib.lib WS2_32.lib Advapi32.lib User32.lib Gdi32.lib Crypt32.lib /EXPORT:initxmlsec build\temp.win32-2.7\Release\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\src\constants.obj build\temp.win32-2.7\Release\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\src\ds.obj build\temp.win32-2.7\Release\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\src\enc.obj build\temp.win32-2.7\Release\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\src\exception.obj build\temp.win32-2.7\Release\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\src\keys.obj build\temp.win32-2.7\Release\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\src\lxml.obj build\temp.win32-2.7\Release\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\src\main.obj build\temp.win32-2.7\Release\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\src\template.obj build\temp.win32-2.7\Release\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\src\tree.obj build\temp.win32-2.7\Release\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\src\utils.obj /OUT:build\lib.win32-2.7\xmlsec.pyd /IMPLIB:build\temp.win32-2.7\Release\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\src\xmlsec.lib /MANIFESTFILE:build\temp.win32-2.7\Release\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\src\xmlsec.pyd.manifest
iconv_a.lib(iconv1.obj) : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance
Creating library build\temp.win32-2.7\Release\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\src\xmlsec.lib and object build\temp.win32-2.7\Release\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\src\xmlsec.exp
Generating code
Finished generating code
libxslt_a.lib(keys.obj) : warning LNK4049: locally defined symbol _xmlMalloc imported
libxslt_a.lib(documents.obj) : warning LNK4049: locally defined symbol _xmlMalloc imported
libxslt_a.lib(preproc.obj) : warning LNK4049: locally defined symbol _xmlMalloc imported
libxslt_a.lib(attributes.obj) : warning LNK4049: locally defined symbol _xmlMalloc imported
libxslt_a.lib(pattern.obj) : warning LNK4049: locally defined symbol _xmlMalloc imported
libxslt_a.lib(extensions.obj) : warning LNK4049: locally defined symbol _xmlMalloc imported
libxslt_a.lib(xsltlocale.obj) : warning LNK4049: locally defined symbol _xmlMalloc imported
libxslt_a.lib(attrvt.obj) : warning LNK4049: locally defined symbol _xmlMalloc imported
libxslt_a.lib(variables.obj) : warning LNK4049: locally defined symbol _xmlMalloc imported
libxslt_a.lib(security.obj) : warning LNK4049: locally defined symbol _xmlMalloc imported
libxslt_a.lib(xslt.obj) : warning LNK4049: locally defined symbol _xmlMalloc imported
libxslt_a.lib(transform.obj) : warning LNK4049: locally defined symbol _xmlMalloc imported
libxslt_a.lib(xsltutils.obj) : warning LNK4049: locally defined symbol _xmlMalloc imported
libxslt_a.lib(numbers.obj) : warning LNK4049: locally defined symbol _xmlFree imported
libxslt_a.lib(functions.obj) : warning LNK4049: locally defined symbol _xmlFree imported
libxslt_a.lib(attributes.obj) : warning LNK4049: locally defined symbol _xmlFree imported
libxslt_a.lib(pattern.obj) : warning LNK4049: locally defined symbol _xmlFree imported
libxslt_a.lib(keys.obj) : warning LNK4049: locally defined symbol _xmlFree imported
libxslt_a.lib(templates.obj) : warning LNK4049: locally defined symbol _xmlFree imported
libxslt_a.lib(variables.obj) : warning LNK4049: locally defined symbol _xmlFree imported
libxslt_a.lib(documents.obj) : warning LNK4049: locally defined symbol _xmlFree imported
libxslt_a.lib(preproc.obj) : warning LNK4049: locally defined symbol _xmlFree imported
libxslt_a.lib(namespaces.obj) : warning LNK4049: locally defined symbol _xmlFree imported
libxslt_a.lib(extensions.obj) : warning LNK4049: locally defined symbol _xmlFree imported
libxslt_a.lib(xsltlocale.obj) : warning LNK4049: locally defined symbol _xmlFree imported
libxslt_a.lib(imports.obj) : warning LNK4049: locally defined symbol _xmlFree imported
libxslt_a.lib(attrvt.obj) : warning LNK4049: locally defined symbol _xmlFree imported
libxslt_a.lib(security.obj) : warning LNK4049: locally defined symbol _xmlFree imported
libxslt_a.lib(xslt.obj) : warning LNK4049: locally defined symbol _xmlFree imported
libxslt_a.lib(transform.obj) : warning LNK4049: locally defined symbol _xmlFree imported
libxslt_a.lib(xsltutils.obj) : warning LNK4049: locally defined symbol _xmlFree imported
libxslt_a.lib(variables.obj) : warning LNK4049: locally defined symbol _xmlRealloc imported
libxslt_a.lib(pattern.obj) : warning LNK4049: locally defined symbol _xmlRealloc imported
libxslt_a.lib(xslt.obj) : warning LNK4049: locally defined symbol _xmlRealloc imported
libxslt_a.lib(transform.obj) : warning LNK4049: locally defined symbol _xmlRealloc imported
libxslt_a.lib(xsltutils.obj) : warning LNK4049: locally defined symbol _xmlRealloc imported
libxslt_a.lib(attrvt.obj) : warning LNK4049: locally defined symbol _xmlRealloc imported
libxslt_a.lib(xslt.obj) : warning LNK4049: locally defined symbol _xmlStringTextNoenc imported
libxslt_a.lib(transform.obj) : warning LNK4049: locally defined symbol _xmlStringTextNoenc imported
libxslt_a.lib(attributes.obj) : warning LNK4049: locally defined symbol _xmlStringTextNoenc imported
libxslt_a.lib(transform.obj) : warning LNK4049: locally defined symbol _xmlStringText imported
libxslt_a.lib(pattern.obj) : warning LNK4049: locally defined symbol _xmlIsExtenderGroup imported
libxslt_a.lib(pattern.obj) : warning LNK4049: locally defined symbol _xmlIsCombiningGroup imported
libxslt_a.lib(pattern.obj) : warning LNK4049: locally defined symbol _xmlIsDigitGroup imported
libxslt_a.lib(numbers.obj) : warning LNK4049: locally defined symbol _xmlIsDigitGroup imported
libxslt_a.lib(pattern.obj) : warning LNK4049: locally defined symbol _xmlIsBaseCharGroup imported
libxslt_a.lib(numbers.obj) : warning LNK4049: locally defined symbol xmlIsBaseCharGroup imported
running install_lib
copying build\lib.win32-2.7\xmlsec.pyd -> c:\python27\Lib\site-packages
running install_egg_info
running egg_info
writing requirements to xmlsec.egg-info\requires.txt
writing xmlsec.egg-info\PKG-INFO
writing top-level names to xmlsec.egg-info\top_level.txt
writing dependency_links to xmlsec.egg-info\dependency_links.txt
reading manifest file 'xmlsec.egg-info\SOURCES.txt'
Traceback (most recent call last):
File "", line 1, in
File "c:\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\setup.py", line 60, in
'Topic :: Text Processing :: Markup :: XML'
File "c:\python27\lib\site-packages\setuptools_init
.py", line 129, in setup
return distutils.core.setup(**attrs)
File "c:\python27\lib\distutils\core.py", line 151, in setup
dist.run_commands()
File "c:\python27\lib\distutils\dist.py", line 953, in run_commands
self.run_command(cmd)
File "c:\python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "c:\python27\lib\site-packages\setuptools\command\install.py", line 61, in run
return orig.install.run(self)
File "c:\python27\lib\distutils\command\install.py", line 575, in run
self.run_command(cmd_name)
File "c:\python27\lib\distutils\cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "c:\python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "c:\python27\lib\site-packages\setuptools\command\install_egg_info.py", line 34, in run
self.run_command('egg_info')
File "c:\python27\lib\distutils\cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "c:\python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "c:\python27\lib\site-packages\setuptools\command\egg_info.py", line 278, in run
self.find_sources()
File "c:\python27\lib\site-packages\setuptools\command\egg_info.py", line 293, in find_sources
mm.run()
File "c:\python27\lib\site-packages\setuptools\command\egg_info.py", line 524, in run
self.add_defaults()
File "c:\python27\lib\site-packages\setuptools\command\egg_info.py", line 567, in add_defaults
self.read_manifest()
File "c:\python27\lib\site-packages\setuptools\command\sdist.py", line 199, in read_manifest
self.filelist.append(line)
File "c:\python27\lib\site-packages\setuptools\command\egg_info.py", line 466, in append
path = convert_path(item)
File "c:\python27\lib\distutils\util.py", line 124, in convert_path
raise ValueError, "path '%s' cannot be absolute" % pathname
ValueError: path '/home/travis/build/mehcode/python-xmlsec/src/constants.c' cannot be absolute

----------------------------------------

Command "c:\python27\python.exe -u -c "import setuptools, tokenize;file='c:\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record c:\users\mjdev\appdata\local\temp\pip-5z8tde-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\mjdev\appdata\local\temp\pip-build-yr1ken\xmlsec`

Error installing py-wsse: python setup.py egg_info did not run successfully.

I'm encountering the following error during pip install py-wsse:

Collecting py-wsse
Downloading py-wsse-0.1.tar.gz (9.7 kB)
error: subprocess-exited-with-error

ร— python setup.py egg_info did not run successfully.
โ”‚ exit code: 1
โ•ฐโ”€> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
Preparing metadata (setup.py) ... error
error: metadata-generation-failed

ร— Encountered error while generating package metadata.
โ•ฐโ”€> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

No crypto property file supplied for decryption Error

Hello,

I am trying to send a wsse style signed XML to a web service. But I am always getting this error.

Server raised fault: 'General security error (WSSecurityEngine: No crypto property file supplied for decryption)'

I am a beginner about this "document signing" topic. But I tested, sending with correct cert, key files. I searched everywhere about that but couldn't find any solution.

Maybe you have an idea or you already see some problem like that. Please guide me for that issue.

Thanks!

Does Py-WSSE support WS-SecureConversation?

I have a somewhat specific issue. The service I am trying to establish a connection to appears to require WS-SecureConversation, which, as far as I can gather, happens in the form of a pre-request handshake between the client and the server to get a security context token that can be used in subsequent requests.

Does this library support this? It's not mentioned, and it could explain why I can't get my module to work. Any help would be appreciated.

Exception in: lxml.etree._Element.__dealloc__

I get this error when using the signing module or running the provided tests:
AssertionError: Tried to unregister unknown proxy
File "src/lxml/proxy.pxi", line 43, in lxml.etree._unregisterProxy (src/lxml/lxml.etree.c:11048)

Any idea what's causing this? I'm running it using either python2.7 or 3.5 and lxml 3.6.4, on Mac OS X EL Capitan or Ubuntu 14.04

sign failed with return value -1

So steps to reproduce:

  1. create a virtual env
  2. clone this repository/master
  3. install dependencies
  4. run py.test
  5. results:

test_sign_and_verify failes.

================================================================================= FAILURES ==================================================================================
___________________________________________________________________________ test_sign_and_verify ____________________________________________________________________________

envelope = '\n        <soap:Envelope\n            xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"\n            xmlns:wsse=...:Body>\n            <Foo xmlns="http://example.com">Text</Foo>\n          </soap:Body>\n        </soap:Envelope>\n    '
cert_path = '/private/var/folders/sh/6c_c8s5n3v7fpg7n5ry27jxr0000gn/T/pytest-of-camilo/pytest-0/test_sign_and_verify0/cert.pem'
key_path = '/private/var/folders/sh/6c_c8s5n3v7fpg7n5ry27jxr0000gn/T/pytest-of-camilo/pytest-0/test_sign_and_verify0/key.pem'

    def test_sign_and_verify(envelope, cert_path, key_path):
>       signed = signing.sign(envelope, key_path, cert_path)

test/test_signing.py:20:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
wsse/signing.py:139: in sign
    ctx.sign(signature)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   Error: (u'sign failed with return value', -1)

src/xmlsec/ds.pyx:79: Error
========================================================================= 1 failed in 0.12 seconds ==========================================================================

wsse.signing.sign does not allow passphrase

When we manually call wsse.signing.sign with a key that is protected by a passphrase, you get this prompt "Enter PEM pass phrase:".
wsse.signing.sign should allow an optional parameter for a passphrase.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.