Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #80255 > unrolled thread

Re: pkcs7 signing

Started byRobin Becker <robin@reportlab.com>
First post2014-11-05 10:14 +0000
Last post2014-11-05 18:25 +0100
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: pkcs7 signing Robin Becker <robin@reportlab.com> - 2014-11-05 10:14 +0000
    Re: pkcs7 signing Irmen de Jong <irmen.NOSPAM@xs4all.nl> - 2014-11-05 18:25 +0100

#80255 — Re: pkcs7 signing

FromRobin Becker <robin@reportlab.com>
Date2014-11-05 10:14 +0000
SubjectRe: pkcs7 signing
Message-ID<mailman.15484.1415182473.18130.python-list@python.org>
On 05/11/2014 06:40, dieter wrote:
> Robin Becker <robin@reportlab.com> 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

[toc] | [next] | [standalone]


#80281

FromIrmen de Jong <irmen.NOSPAM@xs4all.nl>
Date2014-11-05 18:25 +0100
Message-ID<545a5d97$0$2934$e4fe514c@news.xs4all.nl>
In reply to#80255
On 5-11-2014 11:14, Robin Becker wrote:
> On 05/11/2014 06:40, dieter wrote:
>> Robin Becker <robin@reportlab.com> 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.

If you've got no luck with a direct openssl library, you can also call the openssl.exe
binary and capture its results back into Python. You'll have to install something on
windows to get that executable though.


Irmen

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web