Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python.': 0.02; 'bits': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; '2.7': 0.14; 'windows': 0.15; 'does,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'wrote:': 0.18; 'library': 0.18; 'obviously': 0.18; 'packages.': 0.19; 'header:User-Agent:1': 0.23; 'versions': 0.24; 'cc:2**0': 0.24; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'code': 0.31; 'writes:': 0.31; 'probably': 0.32; 'checked': 0.32; 'there,': 0.34; 'but': 0.35; 'building': 0.35; 'there': 0.35; 'to:addr:python-list': 0.38; 'does': 0.39; 'moving': 0.39; 'to:addr:python.org': 0.39; 'either': 0.39; 'received:org': 0.40; 'times': 0.62; 'kind': 0.63; 'received:109': 0.72; 'pain': 0.84; 'cryptography': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Robin Becker Subject: Re: pkcs7 signing Date: Wed, 05 Nov 2014 10:14:21 +0000 References: <545911CD.1060300@chamonix.reportlab.co.uk> <87bnomi20s.fsf@handshake.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: 109.174.168.73 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 In-Reply-To: <87bnomi20s.fsf@handshake.de> Cc: dieter X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1415182473 news.xs4all.nl 2956 [2001:888:2000:d::a6]:47808 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:80255 On 05/11/2014 06:40, dieter wrote: > Robin Becker writes: > >> Is there a way to do pkcs7 / 12 signing with python. > > Have you checked whether "OpenSSL" supports this kind of signing? > If it does, then you likely can use this via several Python wrappings > for "OpenSSL". > I checked that the openssl library does have a call for this, however, I cannot see this exposed in either the cryptography or py2crypto packages. The code may be in there, but I don't see it obviously exposed. I think m2crypto might do the job, but building it for windows is a pain and I probably have to build it 6 times ie 32 & 64 bits x 2.7 3.3 & 3.4. There are pre-built versions of openssl, but that's also a moving target right now. -- Robin Becker