<!DOCTYPE html> <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>OpenSSL β Python interface to OpenSSL — pyOpenSSL 16.1.0 documentation</title> <link rel="stylesheet" href="_static/css/theme.css" type="text/css" /> <link rel="index" title="Index" href="genindex.html"/> <link rel="search" title="Search" href="search.html"/> <link rel="top" title="pyOpenSSL 16.1.0 documentation" href="index.html"/> <link rel="next" title="crypto β Generic cryptographic module" href="api/crypto.html"/> <link rel="prev" title="Installation" href="install.html"/> <script src="_static/js/modernizr.min.js"></script> </head> <body class="wy-body-for-nav" role="document"> <div class="wy-grid-for-nav"> <nav data-toggle="wy-nav-shift" class="wy-nav-side"> <div class="wy-side-scroll"> <div class="wy-side-nav-search"> <a href="index.html" class="icon icon-home"> pyOpenSSL </a> <div class="version"> 16.1.0 </div> <div role="search"> <form id="rtd-search-form" class="wy-form" action="search.html" method="get"> <input type="text" name="q" placeholder="Search docs" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> </div> </div> <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation"> <ul class="current"> <li class="toctree-l1"><a class="reference internal" href="introduction.html">Introduction</a></li> <li class="toctree-l1"><a class="reference internal" href="install.html">Installation</a></li> <li class="toctree-l1 current"><a class="current reference internal" href="#"><code class="docutils literal"><span class="pre">OpenSSL</span></code> — Python interface to OpenSSL</a><ul> <li class="toctree-l2"><a class="reference internal" href="api/crypto.html"><code class="docutils literal"><span class="pre">crypto</span></code> — Generic cryptographic module</a></li> <li class="toctree-l2"><a class="reference internal" href="api/rand.html"><code class="docutils literal"><span class="pre">rand</span></code> — An interface to the OpenSSL pseudo random number generator</a></li> <li class="toctree-l2"><a class="reference internal" href="api/ssl.html"><code class="docutils literal"><span class="pre">SSL</span></code> — An interface to the SSL-specific parts of OpenSSL</a></li> </ul> </li> <li class="toctree-l1"><a class="reference internal" href="internals.html">Internals</a></li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="backward-compatibility.html">Backward Compatibility</a></li> <li class="toctree-l1"><a class="reference internal" href="changelog.html">Changelog</a></li> </ul> </div> </div> </nav> <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"> <nav class="wy-nav-top" role="navigation" aria-label="top navigation"> <i data-toggle="wy-nav-top" class="fa fa-bars"></i> <a href="index.html">pyOpenSSL</a> </nav> <div class="wy-nav-content"> <div class="rst-content"> <div role="navigation" aria-label="breadcrumbs navigation"> <ul class="wy-breadcrumbs"> <li><a href="index.html">Docs</a> »</li> <li><code class="docutils literal"><span class="pre">OpenSSL</span></code> — Python interface to OpenSSL</li> <li class="wy-breadcrumbs-aside"> <a href="_sources/api.txt" rel="nofollow"> View page source</a> </li> </ul> <hr/> </div> <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article"> <div itemprop="articleBody"> <div class="section" id="module-OpenSSL"> <span id="openssl-python-interface-to-openssl"></span><span id="openssl"></span><h1><a class="reference internal" href="#module-OpenSSL" title="OpenSSL: Python interface to OpenSSL"><code class="xref py py-mod docutils literal"><span class="pre">OpenSSL</span></code></a> — Python interface to OpenSSL<a class="headerlink" href="#module-OpenSSL" title="Permalink to this headline">ΒΆ</a></h1> <p>This package provides a high-level interface to the functions in the OpenSSL library. The following modules are defined:</p> <div class="toctree-wrapper compound"> <ul> <li class="toctree-l1"><a class="reference internal" href="api/crypto.html"><code class="docutils literal"><span class="pre">crypto</span></code> — Generic cryptographic module</a><ul> <li class="toctree-l2"><a class="reference internal" href="api/crypto.html#elliptic-curves">Elliptic curves</a></li> <li class="toctree-l2"><a class="reference internal" href="api/crypto.html#serialization-and-deserialization">Serialization and deserialization</a></li> <li class="toctree-l2"><a class="reference internal" href="api/crypto.html#signing-and-verifying-signatures">Signing and verifying signatures</a></li> <li class="toctree-l2"><a class="reference internal" href="api/crypto.html#x509-objects">X509 objects</a></li> <li class="toctree-l2"><a class="reference internal" href="api/crypto.html#x509name-objects">X509Name objects</a></li> <li class="toctree-l2"><a class="reference internal" href="api/crypto.html#x509req-objects">X509Req objects</a></li> <li class="toctree-l2"><a class="reference internal" href="api/crypto.html#x509store-objects">X509Store objects</a></li> <li class="toctree-l2"><a class="reference internal" href="api/crypto.html#x509storecontexterror-objects">X509StoreContextError objects</a></li> <li class="toctree-l2"><a class="reference internal" href="api/crypto.html#x509storecontext-objects">X509StoreContext objects</a></li> <li class="toctree-l2"><a class="reference internal" href="api/crypto.html#x509storeflags-constants">X509StoreFlags constants</a></li> <li class="toctree-l2"><a class="reference internal" href="api/crypto.html#pkey-objects">PKey objects</a></li> <li class="toctree-l2"><a class="reference internal" href="api/crypto.html#pkcs7-objects">PKCS7 objects</a></li> <li class="toctree-l2"><a class="reference internal" href="api/crypto.html#pkcs12-objects">PKCS12 objects</a></li> <li class="toctree-l2"><a class="reference internal" href="api/crypto.html#x509extension-objects">X509Extension objects</a></li> <li class="toctree-l2"><a class="reference internal" href="api/crypto.html#netscapespki-objects">NetscapeSPKI objects</a></li> <li class="toctree-l2"><a class="reference internal" href="api/crypto.html#crl-objects">CRL objects</a></li> <li class="toctree-l2"><a class="reference internal" href="api/crypto.html#revoked-objects">Revoked objects</a></li> <li class="toctree-l2"><a class="reference internal" href="api/crypto.html#exceptions">Exceptions</a></li> <li class="toctree-l2"><a class="reference internal" href="api/crypto.html#digest-names">Digest names</a></li> <li class="toctree-l2"><a class="reference internal" href="api/crypto.html#backwards-compatible-type-names">Backwards compatible type names</a></li> </ul> </li> <li class="toctree-l1"><a class="reference internal" href="api/rand.html"><code class="docutils literal"><span class="pre">rand</span></code> — An interface to the OpenSSL pseudo random number generator</a></li> <li class="toctree-l1"><a class="reference internal" href="api/ssl.html"><code class="docutils literal"><span class="pre">SSL</span></code> — An interface to the SSL-specific parts of OpenSSL</a><ul> <li class="toctree-l2"><a class="reference internal" href="api/ssl.html#context-objects">Context objects</a></li> <li class="toctree-l2"><a class="reference internal" href="api/ssl.html#session-objects">Session objects</a></li> <li class="toctree-l2"><a class="reference internal" href="api/ssl.html#connection-objects">Connection objects</a></li> </ul> </li> </ul> </div> </div> </div> </div> <footer> <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation"> <a href="api/crypto.html" class="btn btn-neutral float-right" title="crypto β Generic cryptographic module" accesskey="n">Next <span class="fa fa-arrow-circle-right"></span></a> <a href="install.html" class="btn btn-neutral" title="Installation" accesskey="p"><span class="fa fa-arrow-circle-left"></span> Previous</a> </div> <hr/> <div role="contentinfo"> <p> © Copyright 2001-2017, The pyOpenSSL developers. </p> </div> Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. </footer> </div> </div> </section> </div> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT:'./', VERSION:'16.1.0', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', HAS_SOURCE: true }; </script> <script type="text/javascript" src="_static/jquery.js"></script> <script type="text/javascript" src="_static/underscore.js"></script> <script type="text/javascript" src="_static/doctools.js"></script> <script type="text/javascript" src="_static/js/theme.js"></script> <script type="text/javascript"> jQuery(function () { SphinxRtdTheme.StickyNav.enable(); }); </script> </body> </html>