Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'encoded': 0.05; 'wrapper': 0.07; 'pyopenssl': 0.09; 'received:openend.se': 0.09; 'received:theraft.openend.se': 0.09; 'cc:addr:python-list': 0.10; 'python': 0.11; 'missed': 0.15; 'cc:addr:lac': 0.16; 'cc:addr:openend.se': 0.16; 'from:addr:lac': 0.16; 'from:addr:openend.se': 0.16; 'from:name:laura creighton': 0.16; 'openssl': 0.16; 'app': 0.16; 'string': 0.17; 'laura': 0.18; 'language': 0.19; 'cc:addr:python.org': 0.21; 'trying': 0.22; 'cc:2**1': 0.22; 'together.': 0.22; 'subject:skip:i 10': 0.22; '2015': 0.23; 'header:In-Reply-To:1': 0.24; 'command': 0.28; "i'm": 0.29; '-0700,': 0.29; 'does,': 0.29; 'fighting': 0.29; 'received:se': 0.29; 'usable': 0.29; 'cc:no real name:2**1': 0.29; 'fri,': 0.31; 'implement': 0.32; 'another': 0.34; 'file': 0.34; 'but': 0.36; 'tool': 0.36; 'subject:: ': 0.37; 'charset:us-ascii': 0.37; 'instead': 0.38; 'header:Message-Id:1': 0.62; 'jul': 0.72; 'dennis': 0.91 To: Dennis Jacobfeuerborn cc: python-list@python.org, lac@openend.se From: Laura Creighton Subject: Re: Searching for a usable X509 implementation In-Reply-To: Message from Dennis Jacobfeuerborn of "Fri, 03 Jul 2015 17:11:10 -0700." <46c64c5f-e5b5-4865-83e0-2474ebe4f8bd@googlegroups.com> References: <46c64c5f-e5b5-4865-83e0-2474ebe4f8bd@googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <21066.1436056042.1@theraft> Date: Sun, 05 Jul 2015 02:27:22 +0200 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.9 (theraft.openend.se [127.0.0.1]); Sun, 05 Jul 2015 02:27:24 +0200 (CEST) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ 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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1436056055 news.xs4all.nl 2874 [2001:888:2000:d::a6]:57307 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:93498 In a message of Fri, 03 Jul 2015 17:11:10 -0700, Dennis Jacobfeuerborn writes: >Hi, >I'm trying to implement certificate functionality in a python app but after fighting with pyOpenSSL and M2Crypto I'm thinking about writing wrapper functions for the OpenSSL command line tool instead or switching the app to another language all together. > >Apparently PyOpenSSL has no way to save a public key to a file which is baffling. M2Crypto has that ability but apparently no usable way to verify a certificate? PyOpenSSL does, you must have missed it when looking. You are looking for OpenSSL.crypto.dump_certificate(type, cert) Dump the certificate cert into a buffer string encoded with the type type. Laura