<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.openssl.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=DavidCary</id>
	<title>OpenSSLWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.openssl.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=DavidCary"/>
	<link rel="alternate" type="text/html" href="https://wiki.openssl.org/index.php/Special:Contributions/DavidCary"/>
	<updated>2026-05-21T00:43:37Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.13</generator>
	<entry>
		<id>https://wiki.openssl.org/index.php?title=Related_Links&amp;diff=2150</id>
		<title>Related Links</title>
		<link rel="alternate" type="text/html" href="https://wiki.openssl.org/index.php?title=Related_Links&amp;diff=2150"/>
		<updated>2015-02-03T01:11:34Z</updated>

		<summary type="html">&lt;p&gt;DavidCary: mention press coverage&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Please feel free to edit this page and add your own OpenSSL-based project or product. This is the one place where otherwise extraneous mention of commercial products is appropriate. Note such mention does not constitute endorsement per our [[Commercial Product Disclaimer]].&lt;br /&gt;
&lt;br /&gt;
== Open Source Cryptographic Libraries ==&lt;br /&gt;
&lt;br /&gt;
Products which are available under some form of Open Source license, and which may also be available under some form of commercial license.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|+ Open Source Cryptographic Libraries&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;150px&amp;quot; | Library&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; class=&amp;quot;unsortable&amp;quot; | Description&lt;br /&gt;
|-&lt;br /&gt;
| [http://sourceforge.net/projects/amissl/ AmiSSL] || an OpenSSL port to AmigaOS&lt;br /&gt;
|-&lt;br /&gt;
| [http://botan.randombit.net/ Botan] || a C++ cryptography library which includes a TLS implementation&lt;br /&gt;
|-&lt;br /&gt;
| [https://boringssl.googlesource.com/boringssl/ BoringSSL] || a Google fork of OpenSSL ([https://www.imperialviolet.org/2014/06/20/boringssl.html Announcement ]) (Press coverage: [https://news.ycombinator.com/item?id=7922745 ycombinator], [http://arstechnica.com/security/2014/06/google-unveils-independent-fork-of-openssl-called-boringssl/ Ars Technica], [http://www.pcworld.com/article/2366440/google-develops-own-boring-version-of-openssl.html PC World], [http://www.zdnet.com/google-takes-openssl-and-turns-it-into-boringssl-7000030796/ ZDNet] )&lt;br /&gt;
|-&lt;br /&gt;
| [http://www.bouncycastle.org/ Bouncy Castle] || cryptography API for Java and C# ([[Wikipedia: Bouncy Castle (cryptography)]])&lt;br /&gt;
|-&lt;br /&gt;
| [http://www.cs.auckland.ac.nz/~pgut001/cryptlib/ Cryptlib] || a security toolkit that allows one to easily add encryption and authentication services to software&lt;br /&gt;
|-&lt;br /&gt;
| [http://www.cryptopp.com/ Crypto++] || a free C++ class library of cryptographic schemes&lt;br /&gt;
|-&lt;br /&gt;
| [http://www.gnutls.org/ GnuTLS] || an LGPL-licensed TLS library with substantial documentation&lt;br /&gt;
|-&lt;br /&gt;
| [http://www.libressl.org/ LibreSSL] || an OpenBSD fork of OpenSSL (Press coverage: [http://www.zdnet.com/openbsd-forks-prunes-fixes-openssl-7000028613/ ZDNet], [http://arstechnica.com/information-technology/2014/04/openssl-code-beyond-repair-claims-creator-of-libressl-fork/ Ars Technica])&lt;br /&gt;
|-&lt;br /&gt;
| [http://libtom.org/ LibTomCrypt] || public domain open source crypto library written in C&lt;br /&gt;
|-&lt;br /&gt;
| [http://www.mitls.org/wsgi miTLS] || a verified reference implementation of the TLS protocol. ([http://www.reddit.com/r/netsec/comments/1zn2d3/mitls_a_verified_reference_tls_implementation/ &amp;quot;reddit: miTLS - A verified reference TLS implementation&amp;quot;])&lt;br /&gt;
|-&lt;br /&gt;
| [http://nacl.cr.yp.to/ NaCl] || NaCl (pronounced &amp;quot;salt&amp;quot;) is a easy-to-use high-speed software library for network communication, encryption, decryption, and signatures&lt;br /&gt;
|-&lt;br /&gt;
| [http://www.mozilla.org/projects/security/pki/nss/ NSS] || a set of libraries designed to support cross-platform development of security-enabled client and server applications&lt;br /&gt;
|-&lt;br /&gt;
| [http://polarssl.org/ PolarSSL] || an SSL library that handles the complexities of the Secure Sockets Layer (SSL) protocol for an application ([[Wikipedia: PolarSSL]])&lt;br /&gt;
|-&lt;br /&gt;
| [http://www.ohloh.net/projects/xyssl XySSL] || a C library providing a very small footprint crypto library and SSL implementation.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Open Source Products Using OpenSSL ==&lt;br /&gt;
&lt;br /&gt;
Products which are available under some form of Open Source License, and which may also be available under some form of commercial license.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|+ Open Source Products Using OpenSSL&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;150px&amp;quot; | Product&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; class=&amp;quot;unsortable&amp;quot; | Description&lt;br /&gt;
|-&lt;br /&gt;
| [http://libevent.org/ libevent] || an event driven library which can [http://www.wangafu.net/~nickm/libevent-book/Ref6a_advanced_bufferevents.html#_bufferevents_and_ssl optionally use OpenSSL]&lt;br /&gt;
|-&lt;br /&gt;
| [http://en.wikipedia.org/wiki/Mod_ssl mod_ssl] || SSL/TLS module for the [http://en.wikipedia.org/wiki/Apache_HTTP_Server Apache HTTP Server]&lt;br /&gt;
|-&lt;br /&gt;
|[https://www.stunnel.org/index.html Stunnel] || an SSL encryption wrapper between remote client and local (inetd-startable) or remote server&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Languages libraries/Wrappers relying on openssl ===&lt;br /&gt;
&lt;br /&gt;
* '''libcurl''' http://curl.haxx.se/ which can use openssl&lt;br /&gt;
* '''PHP''' uses libcurl http://php.net/manual/en/intro.curl.php &lt;br /&gt;
* '''Python''' pyOpenSSL https://github.com/pyca/pyopenssl cryptography https://github.com/pyca/cryptography&lt;br /&gt;
* '''Perl''' Perl-Openssl http://sourceforge.net/projects/perl-openssl/&lt;br /&gt;
&lt;br /&gt;
== Closed Source Cryptographic Libraries ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|+ Closed Source Cryptographic Libraries&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;150px&amp;quot; | Library&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; class=&amp;quot;unsortable&amp;quot; | Description&lt;br /&gt;
|-&lt;br /&gt;
| [http://www.example.com No Entry]  || This is a placeholder&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Closed Source Products Using OpenSSL ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|+ Closed Source Products Using OpenSSL&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;150px&amp;quot; | Product&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; class=&amp;quot;unsortable&amp;quot; | Description&lt;br /&gt;
|-&lt;br /&gt;
| Stonesoft Firewall Appliances [https://www.stonesoft.com/en/customer_care/documentation/appliances/] &lt;br /&gt;
| Stonesoft (now McAfee) Appliances uses openssl as SSL/TLS communication library, license advertised [http://www.stonesoft.com/en/customer_care/support/third_party_licenses.html]&lt;br /&gt;
|-&lt;br /&gt;
| [http://www.example.com No Entry]  || This is a placeholder&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Even if this section is empty now, it exist a numerous number of closed source products using OpenSSL.&lt;br /&gt;
&lt;br /&gt;
== Books and Documentation == &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|+ Books and Documentation&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;150px&amp;quot; | Title&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; class=&amp;quot;unsortable&amp;quot; | Description&lt;br /&gt;
|-&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Comparison_of_TLS_implementations Comparison of TLS implementations]  || Wikipedia article comparing various TLS libraries&lt;br /&gt;
|-&lt;br /&gt;
| [http://www.keylength.com/ keylength.com]  || site which summarizes various key length recommendations&lt;br /&gt;
|-&lt;br /&gt;
| [https://www.feistyduck.com/books/openssl-cookbook/ OpenSSL Cookbook]  || A free ebook that covers configuration and command-line usage (first&lt;br /&gt;
published in 2013; continuously updated)&lt;br /&gt;
|-&lt;br /&gt;
| [http://shop.oreilly.com/product/9780596002701.do Network Security with OpenSSL]  || O'Reilly book from 2002&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>DavidCary</name></author>
	</entry>
	<entry>
		<id>https://wiki.openssl.org/index.php?title=Multiprecision_arithmetic_internals&amp;diff=2028</id>
		<title>Multiprecision arithmetic internals</title>
		<link rel="alternate" type="text/html" href="https://wiki.openssl.org/index.php?title=Multiprecision_arithmetic_internals&amp;diff=2028"/>
		<updated>2014-11-09T06:08:03Z</updated>

		<summary type="html">&lt;p&gt;DavidCary: rough draft.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;OpenSSL includes an implementation of multiprecision arithmetic,&lt;br /&gt;
used for dealing with the large numbers used in public-key cryptography and a few other cryptographic algorithms.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.openssl.org/docs/crypto/bn.html &amp;quot;bn(3) overview&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
[http://www.openssl.org/docs/crypto/bn_internal.html &amp;quot;bn_internal(3)&amp;quot;],&lt;br /&gt;
BIGNUM library internal functions &amp;quot;to facilitate debugging and extending the library.&lt;br /&gt;
They are not to be used by applications.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Other popular [http://en.wikipedia.org/wiki/Arbitrary-precision_arithmetic multiprecision libraries and tools] that perhaps might be useful for testing OpenSSL's multiprecision implementation include:&lt;br /&gt;
[http://gmplib.org/ GMP],&lt;br /&gt;
the [http://en.wikipedia.org/wiki/bc_(programming_language) bc programming language],&lt;br /&gt;
etc.&lt;/div&gt;</summary>
		<author><name>DavidCary</name></author>
	</entry>
	<entry>
		<id>https://wiki.openssl.org/index.php?title=Internals&amp;diff=2027</id>
		<title>Internals</title>
		<link rel="alternate" type="text/html" href="https://wiki.openssl.org/index.php?title=Internals&amp;diff=2027"/>
		<updated>2014-11-09T06:06:25Z</updated>

		<summary type="html">&lt;p&gt;DavidCary: multiprecision arithmetic internals&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* [[Memory management internals]]&lt;br /&gt;
* [[multiprecision arithmetic internals]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Internals]]&lt;/div&gt;</summary>
		<author><name>DavidCary</name></author>
	</entry>
	<entry>
		<id>https://wiki.openssl.org/index.php?title=Memory_management_internals&amp;diff=1973</id>
		<title>Memory management internals</title>
		<link rel="alternate" type="text/html" href="https://wiki.openssl.org/index.php?title=Memory_management_internals&amp;diff=1973"/>
		<updated>2014-10-09T13:41:07Z</updated>

		<summary type="html">&lt;p&gt;DavidCary: brief summary.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== free list in libssl ==&lt;br /&gt;
&lt;br /&gt;
libssl maintains an internal free list, rather than calling malloc/free directly.  See these two blog posts:&lt;br /&gt;
&lt;br /&gt;
* [http://www.tedunangst.com/flak/post/heartbleed-vs-mallocconf heartbleed-vs-mallocconf]&lt;br /&gt;
* [http://www.tedunangst.com/flak/post/analysis-of-openssl-freelist-reuse analysis-of-openssl-freelist-reuse]&lt;br /&gt;
&lt;br /&gt;
These posts recommend getting rid of that internal free list (custom memory allocation),&lt;br /&gt;
and simply calling malloc/free directly.&lt;/div&gt;</summary>
		<author><name>DavidCary</name></author>
	</entry>
	<entry>
		<id>https://wiki.openssl.org/index.php?title=Command_Line_Utilities&amp;diff=1972</id>
		<title>Command Line Utilities</title>
		<link rel="alternate" type="text/html" href="https://wiki.openssl.org/index.php?title=Command_Line_Utilities&amp;diff=1972"/>
		<updated>2014-10-08T23:44:59Z</updated>

		<summary type="html">&lt;p&gt;DavidCary: link to cookbook-style recipes, etc.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://www.openssl.org/docs/apps/openssl.html OpenSSL site command line tools]&lt;br /&gt;
&lt;br /&gt;
=== Getting started with your openssl toolkit ===&lt;br /&gt;
&lt;br /&gt;
The openssl binary (usually /usr/bin/openssl on linux) is an entry point for many functions. You call it following the pattern&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ openssl command [ command_opts ] [ command_args ] &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Alternatively you can call it without arguments to enter the interactive mode with an 'OpenSSL&amp;gt;' prompt. Then you can directly type your commands. You can leave the interactive mode with Ctrl+C or Ctrl+D or by typing 'quit':&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
OpenSSL&amp;gt; quit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There are three different kinds of commands. These are [[standard commands]], [[cipher commands]], and [[message-digest commands]]. In the following an overview over some commands is given. These are grouped by purpose and not necessarily by the classification just mentioned.&lt;br /&gt;
&lt;br /&gt;
=== Learn about your installation ===&lt;br /&gt;
&lt;br /&gt;
==== List commands by type ====&lt;br /&gt;
&lt;br /&gt;
You can get a list of available commands by calling&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ openssl list-standard-commands&lt;br /&gt;
$ openssl list-cipher-commands&lt;br /&gt;
$ openssl list-message-digest-commands&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== version ====&lt;br /&gt;
&lt;br /&gt;
OpenSSL&amp;gt; version&lt;br /&gt;
OpenSSL 1.0.1e 11 Feb 2013&lt;br /&gt;
&lt;br /&gt;
==== ciphers ====&lt;br /&gt;
&lt;br /&gt;
returns SSL/TLS ciphers supported.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
OpenSSL&amp;gt; ciphers&lt;br /&gt;
ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:SRP-DSS-AES-256-CBC-SHA:SRP-RSA-AES-256-CBC-SHA:DHE-DSS-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA256:DHE-RSA-AES256-SHA:DHE-DSS-AES256-SHA:DHE-RSA-CAMELLIA256-SHA:DHE-DSS-CAMELLIA256-SHA:ECDH-RSA-AES256-GCM-SHA384:ECDH-ECDSA-AES256-GCM-SHA384:ECDH-RSA-AES256-SHA384:ECDH-ECDSA-AES256-SHA384:ECDH-RSA-AES256-SHA:ECDH-ECDSA-AES256-SHA:AES256-GCM-SHA384:AES256-SHA256:AES256-SHA:CAMELLIA256-SHA:PSK-AES256-CBC-SHA:ECDHE-RSA-DES-CBC3-SHA:ECDHE-ECDSA-DES-CBC3-SHA:SRP-DSS-3DES-EDE-CBC-SHA:SRP-RSA-3DES-EDE-CBC-SHA:EDH-RSA-DES-CBC3-SHA:EDH-DSS-DES-CBC3-SHA:ECDH-RSA-DES-CBC3-SHA:ECDH-ECDSA-DES-CBC3-SHA:DES-CBC3-SHA:PSK-3DES-EDE-CBC-SHA:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:SRP-DSS-AES-128-CBC-SHA:SRP-RSA-AES-128-CBC-SHA:DHE-DSS-AES128-GCM-SHA256:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES128-SHA256:DHE-DSS-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA:DHE-RSA-SEED-SHA:DHE-DSS-SEED-SHA:DHE-RSA-CAMELLIA128-SHA:DHE-DSS-CAMELLIA128-SHA:ECDH-RSA-AES128-GCM-SHA256:ECDH-ECDSA-AES128-GCM-SHA256:ECDH-RSA-AES128-SHA256:ECDH-ECDSA-AES128-SHA256:ECDH-RSA-AES128-SHA:ECDH-ECDSA-AES128-SHA:AES128-GCM-SHA256:AES128-SHA256:AES128-SHA:SEED-SHA:CAMELLIA128-SHA:PSK-AES128-CBC-SHA:ECDHE-RSA-RC4-SHA:ECDHE-ECDSA-RC4-SHA:ECDH-RSA-RC4-SHA:ECDH-ECDSA-RC4-SHA:RC4-SHA:RC4-MD5:PSK-RC4-SHA:EDH-RSA-DES-CBC-SHA:EDH-DSS-DES-CBC-SHA:DES-CBC-SHA:EXP-EDH-RSA-DES-CBC-SHA:EXP-EDH-DSS-DES-CBC-SHA:EXP-DES-CBC-SHA:EXP-RC2-CBC-MD5:EXP-RC4-MD5&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
openssl list-cipher-algorithms&lt;br /&gt;
&lt;br /&gt;
openssl list-public-key-algorithms&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Name: OpenSSL RSA method&lt;br /&gt;
	Type: Builtin Algorithm&lt;br /&gt;
	OID: rsaEncryption&lt;br /&gt;
	PEM string: RSA&lt;br /&gt;
Name: rsa&lt;br /&gt;
	Type: Alias to rsaEncryption&lt;br /&gt;
Name: OpenSSL PKCS#3 DH method&lt;br /&gt;
	Type: Builtin Algorithm&lt;br /&gt;
	OID: dhKeyAgreement&lt;br /&gt;
	PEM string: DH&lt;br /&gt;
Name: dsaWithSHA&lt;br /&gt;
	Type: Alias to dsaEncryption&lt;br /&gt;
Name: dsaEncryption-old&lt;br /&gt;
	Type: Alias to dsaEncryption&lt;br /&gt;
Name: dsaWithSHA1-old&lt;br /&gt;
	Type: Alias to dsaEncryption&lt;br /&gt;
Name: dsaWithSHA1&lt;br /&gt;
	Type: Alias to dsaEncryption&lt;br /&gt;
Name: OpenSSL DSA method&lt;br /&gt;
	Type: Builtin Algorithm&lt;br /&gt;
	OID: dsaEncryption&lt;br /&gt;
	PEM string: DSA&lt;br /&gt;
Name: OpenSSL EC algorithm&lt;br /&gt;
	Type: Builtin Algorithm&lt;br /&gt;
	OID: id-ecPublicKey&lt;br /&gt;
	PEM string: EC&lt;br /&gt;
Name: OpenSSL HMAC method&lt;br /&gt;
	Type: Builtin Algorithm&lt;br /&gt;
	OID: hmac&lt;br /&gt;
	PEM string: HMAC&lt;br /&gt;
Name: OpenSSL CMAC method&lt;br /&gt;
	Type: Builtin Algorithm&lt;br /&gt;
	OID: cmac&lt;br /&gt;
	PEM string: CMAC&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== engine ====&lt;br /&gt;
&lt;br /&gt;
OpenSSL&amp;gt; engine&lt;br /&gt;
(rsax) RSAX engine support&lt;br /&gt;
(dynamic) Dynamic engine loading support&lt;br /&gt;
&lt;br /&gt;
==== speed ====&lt;br /&gt;
&lt;br /&gt;
returns informations of toolkit performance on cryptographic functions computations.&lt;br /&gt;
&lt;br /&gt;
( Ex: on Linux 3.1.0-1-amd64 #1 SMP x86_64 GNU/Linux, HP dv7 i7 4Gb )&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ openssl speed&lt;br /&gt;
Doing md4 for 3s on 16 size blocks: 12430613 md4's in 3.00s&lt;br /&gt;
...&lt;br /&gt;
Doing md5 for 3s on 16 size blocks: 8943943 md5's in 2.99s&lt;br /&gt;
Doing md5 for 3s on 64 size blocks: 6560162 md5's in 3.00s&lt;br /&gt;
Doing md5 for 3s on 256 size blocks: 3674563 md5's in 3.00s&lt;br /&gt;
Doing md5 for 3s on 1024 size blocks: 1325803 md5's in 3.00s&lt;br /&gt;
Doing md5 for 3s on 8192 size blocks: 190271 md5's in 3.00s&lt;br /&gt;
Doing hmac(md5) for 3s on 16 size blocks: 7289025 hmac(md5)'s in 3.00s&lt;br /&gt;
Doing hmac(md5) for 3s on 64 size blocks: 5519732 hmac(md5)'s in 3.00s&lt;br /&gt;
Doing hmac(md5) for 3s on 256 size blocks: 3319123 hmac(md5)'s in 3.00s&lt;br /&gt;
Doing hmac(md5) for 3s on 1024 size blocks: 1275475 hmac(md5)'s in 3.00s&lt;br /&gt;
Doing hmac(md5) for 3s on 8192 size blocks: 187134 hmac(md5)'s in 3.00s&lt;br /&gt;
Doing sha1 for 3s on 16 size blocks: 10089842 sha1's in 2.99s&lt;br /&gt;
Doing sha1 for 3s on 64 size blocks: 7033355 sha1's in 3.00s&lt;br /&gt;
Doing sha1 for 3s on 256 size blocks: 3919372 sha1's in 3.00s&lt;br /&gt;
Doing sha1 for 3s on 1024 size blocks: 1374314 sha1's in 3.00s&lt;br /&gt;
Doing sha1 for 3s on 8192 size blocks: 198808 sha1's in 3.00s&lt;br /&gt;
Doing sha256 for 3s on 16 size blocks: 6462822 sha256's in 3.00s&lt;br /&gt;
Doing sha256 for 3s on 64 size blocks: 3504641 sha256's in 3.00s&lt;br /&gt;
Doing sha256 for 3s on 256 size blocks: 1486771 sha256's in 3.00s&lt;br /&gt;
Doing sha256 for 3s on 1024 size blocks: 440613 sha256's in 3.00s&lt;br /&gt;
Doing sha256 for 3s on 8192 size blocks: 58418 sha256's in 3.00s&lt;br /&gt;
Doing sha512 for 3s on 16 size blocks: 5040453 sha512's in 2.99s&lt;br /&gt;
Doing sha512 for 3s on 64 size blocks: 5089425 sha512's in 3.00s&lt;br /&gt;
Doing sha512 for 3s on 256 size blocks: 1865240 sha512's in 3.00s&lt;br /&gt;
Doing sha512 for 3s on 1024 size blocks: 643708 sha512's in 3.00s&lt;br /&gt;
Doing sha512 for 3s on 8192 size blocks: 90615 sha512's in 3.00s&lt;br /&gt;
...&lt;br /&gt;
Doing whirlpool for 3s on 8192 size blocks: 33204 whirlpool's in 3.00s&lt;br /&gt;
...&lt;br /&gt;
Doing rmd160 for 3s on 8192 size blocks: 66719 rmd160's in 3.00s&lt;br /&gt;
...&lt;br /&gt;
Doing rc4 for 3s on 8192 size blocks: 238972 rc4's in 3.00s&lt;br /&gt;
...&lt;br /&gt;
Doing des cbc for 3s on 8192 size blocks: 19837 des cbc's in 3.00s&lt;br /&gt;
...&lt;br /&gt;
Doing des ede3 for 3s on 8192 size blocks: 7706 des ede3's in 3.00s&lt;br /&gt;
...&lt;br /&gt;
Doing aes-128 cbc for 3s on 8192 size blocks: 35217 aes-128 cbc's in 3.00s&lt;br /&gt;
...&lt;br /&gt;
Doing aes-192 cbc for 3s on 8192 size blocks: 29225 aes-192 cbc's in 3.01s&lt;br /&gt;
...&lt;br /&gt;
Doing aes-256 cbc for 3s on 8192 size blocks: 24414 aes-256 cbc's in 3.00s&lt;br /&gt;
...&lt;br /&gt;
Doing aes-256 ige for 3s on 8192 size blocks: 23331 aes-256 ige's in 2.99s&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Basic encryption ===&lt;br /&gt;
&lt;br /&gt;
The command for symmetric encryption/decryption operations is [[enc|openssl enc]].&lt;br /&gt;
&lt;br /&gt;
For public key asymmetric encryption/decryption/sign/verify operations, use [[pkeyutl]] or the older RSA-specific [[rsautl]].&lt;br /&gt;
&lt;br /&gt;
==== Basic file ====&lt;br /&gt;
&lt;br /&gt;
to cipher a file or data to protect and share it protected by a shared key.&lt;br /&gt;
&lt;br /&gt;
symmetric cipher :&lt;br /&gt;
[[AES]] [[Blowfish]] [[RC4]] [[3DES]] [[RC2]] [[DES]] [[CAST5]] [[SEED]]&lt;br /&gt;
&lt;br /&gt;
block to stream conversion :&lt;br /&gt;
[[ECB]] [[CBC]] [[OFB]] [[CFB]] [[CTR]] [[XTS]] [[GCM]]&lt;br /&gt;
&lt;br /&gt;
compression :&lt;br /&gt;
[[ZLIB]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cipher commands (see the `enc' command for more details)&lt;br /&gt;
aes-128-cbc       aes-128-ecb       aes-192-cbc       aes-192-ecb       &lt;br /&gt;
aes-256-cbc       aes-256-ecb       base64            bf                &lt;br /&gt;
bf-cbc            bf-cfb            bf-ecb            bf-ofb            &lt;br /&gt;
camellia-128-cbc  camellia-128-ecb  camellia-192-cbc  camellia-192-ecb  &lt;br /&gt;
camellia-256-cbc  camellia-256-ecb  cast              cast-cbc          &lt;br /&gt;
cast5-cbc         cast5-cfb         cast5-ecb         cast5-ofb         &lt;br /&gt;
des               des-cbc           des-cfb           des-ecb           &lt;br /&gt;
des-ede           des-ede-cbc       des-ede-cfb       des-ede-ofb       &lt;br /&gt;
des-ede3          des-ede3-cbc      des-ede3-cfb      des-ede3-ofb      &lt;br /&gt;
des-ofb           des3              desx              rc2               &lt;br /&gt;
rc2-40-cbc        rc2-64-cbc        rc2-cbc           rc2-cfb           &lt;br /&gt;
rc2-ecb           rc2-ofb           rc4               rc4-40            &lt;br /&gt;
seed              seed-cbc          seed-cfb          seed-ecb          &lt;br /&gt;
seed-ofb          zlib&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
openssl enc --help&lt;br /&gt;
unknown option '--help'&lt;br /&gt;
options are&lt;br /&gt;
-in &amp;lt;file&amp;gt;     input file&lt;br /&gt;
-out &amp;lt;file&amp;gt;    output file&lt;br /&gt;
-pass &amp;lt;arg&amp;gt;    pass phrase source&lt;br /&gt;
-e             encrypt&lt;br /&gt;
-d             decrypt&lt;br /&gt;
-a/-base64     base64 encode/decode, depending on encryption flag&lt;br /&gt;
-k             passphrase is the next argument&lt;br /&gt;
-kfile         passphrase is the first line of the file argument&lt;br /&gt;
-md            the next argument is the md to use to create a key&lt;br /&gt;
                 from a passphrase.  One of md2, md5, sha or sha1&lt;br /&gt;
-S             salt in hex is the next argument&lt;br /&gt;
-K/-iv         key/iv in hex is the next argument&lt;br /&gt;
-[pP]          print the iv/key (then exit if -P)&lt;br /&gt;
-bufsize &amp;lt;n&amp;gt;   buffer size&lt;br /&gt;
-nopad         disable standard block padding&lt;br /&gt;
-engine e      use engine e, possibly a hardware device.&lt;br /&gt;
Cipher Types&lt;br /&gt;
-aes-128-cbc               -aes-128-cfb               -aes-128-cfb1             &lt;br /&gt;
-aes-128-cfb8              -aes-128-ctr               -aes-128-ecb              &lt;br /&gt;
-aes-128-gcm               -aes-128-ofb               -aes-128-xts              &lt;br /&gt;
-aes-192-cbc               -aes-192-cfb               -aes-192-cfb1             &lt;br /&gt;
-aes-192-cfb8              -aes-192-ctr               -aes-192-ecb              &lt;br /&gt;
-aes-192-gcm               -aes-192-ofb               -aes-256-cbc              &lt;br /&gt;
-aes-256-cfb               -aes-256-cfb1              -aes-256-cfb8             &lt;br /&gt;
-aes-256-ctr               -aes-256-ecb               -aes-256-gcm              &lt;br /&gt;
-aes-256-ofb               -aes-256-xts               -aes128                   &lt;br /&gt;
-aes192                    -aes256                    -bf                       &lt;br /&gt;
-bf-cbc                    -bf-cfb                    -bf-ecb                   &lt;br /&gt;
-bf-ofb                    -blowfish                  -camellia-128-cbc         &lt;br /&gt;
-camellia-128-cfb          -camellia-128-cfb1         -camellia-128-cfb8        &lt;br /&gt;
-camellia-128-ecb          -camellia-128-ofb          -camellia-192-cbc         &lt;br /&gt;
-camellia-192-cfb          -camellia-192-cfb1         -camellia-192-cfb8        &lt;br /&gt;
-camellia-192-ecb          -camellia-192-ofb          -camellia-256-cbc         &lt;br /&gt;
-camellia-256-cfb          -camellia-256-cfb1         -camellia-256-cfb8        &lt;br /&gt;
-camellia-256-ecb          -camellia-256-ofb          -camellia128              &lt;br /&gt;
-camellia192               -camellia256               -cast                     &lt;br /&gt;
-cast-cbc                  -cast5-cbc                 -cast5-cfb                &lt;br /&gt;
-cast5-ecb                 -cast5-ofb                 -des                      &lt;br /&gt;
-des-cbc                   -des-cfb                   -des-cfb1                 &lt;br /&gt;
-des-cfb8                  -des-ecb                   -des-ede                  &lt;br /&gt;
-des-ede-cbc               -des-ede-cfb               -des-ede-ofb              &lt;br /&gt;
-des-ede3                  -des-ede3-cbc              -des-ede3-cfb             &lt;br /&gt;
-des-ede3-cfb1             -des-ede3-cfb8             -des-ede3-ofb             &lt;br /&gt;
-des-ofb                   -des3                      -desx                     &lt;br /&gt;
-desx-cbc                  -id-aes128-GCM             -id-aes192-GCM            &lt;br /&gt;
-id-aes256-GCM             -rc2                       -rc2-40-cbc               &lt;br /&gt;
-rc2-64-cbc                -rc2-cbc                   -rc2-cfb                  &lt;br /&gt;
-rc2-ecb                   -rc2-ofb                   -rc4                      &lt;br /&gt;
-rc4-40                    -rc4-hmac-md5              -seed                     &lt;br /&gt;
-seed-cbc                  -seed-cfb                  -seed-ecb                 &lt;br /&gt;
-seed-ofb  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Mail / SMIME ====&lt;br /&gt;
&lt;br /&gt;
===== smime v2 pkcs7 1.5 =====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
openssl smime --help&lt;br /&gt;
Usage smime [options] cert.pem ...&lt;br /&gt;
where options are&lt;br /&gt;
-encrypt       encrypt message&lt;br /&gt;
-decrypt       decrypt encrypted message&lt;br /&gt;
-sign          sign message&lt;br /&gt;
-verify        verify signed message&lt;br /&gt;
-pk7out        output PKCS#7 structure&lt;br /&gt;
-des3          encrypt with triple DES&lt;br /&gt;
-des           encrypt with DES&lt;br /&gt;
-seed          encrypt with SEED&lt;br /&gt;
-rc2-40        encrypt with RC2-40 (default)&lt;br /&gt;
-rc2-64        encrypt with RC2-64&lt;br /&gt;
-rc2-128       encrypt with RC2-128&lt;br /&gt;
-aes128, -aes192, -aes256&lt;br /&gt;
               encrypt PEM output with cbc aes&lt;br /&gt;
-camellia128, -camellia192, -camellia256&lt;br /&gt;
               encrypt PEM output with cbc camellia&lt;br /&gt;
-nointern      don't search certificates in message for signer&lt;br /&gt;
-nosigs        don't verify message signature&lt;br /&gt;
-noverify      don't verify signers certificate&lt;br /&gt;
-nocerts       don't include signers certificate when signing&lt;br /&gt;
-nodetach      use opaque signing&lt;br /&gt;
-noattr        don't include any signed attributes&lt;br /&gt;
-binary        don't translate message to text&lt;br /&gt;
-certfile file other certificates file&lt;br /&gt;
-signer file   signer certificate file&lt;br /&gt;
-recip  file   recipient certificate file for decryption&lt;br /&gt;
-in file       input file&lt;br /&gt;
-inform arg    input format SMIME (default), PEM or DER&lt;br /&gt;
-inkey file    input private key (if not signer or recipient)&lt;br /&gt;
-keyform arg   input private key format (PEM or ENGINE)&lt;br /&gt;
-out file      output file&lt;br /&gt;
-outform arg   output format SMIME (default), PEM or DER&lt;br /&gt;
-content file  supply or override content for detached signature&lt;br /&gt;
-to addr       to address&lt;br /&gt;
-from ad       from address&lt;br /&gt;
-subject s     subject&lt;br /&gt;
-text          include or delete text MIME headers&lt;br /&gt;
-CApath dir    trusted certificates directory&lt;br /&gt;
-CAfile file   trusted certificates file&lt;br /&gt;
-crl_check     check revocation status of signer's certificate using CRLs&lt;br /&gt;
-crl_check_all check revocation status of signer's certificate chain using CRLs&lt;br /&gt;
-engine e      use engine e, possibly a hardware device.&lt;br /&gt;
-passin arg    input file pass phrase source&lt;br /&gt;
-rand file:file:...&lt;br /&gt;
               load the file (or the files in the directory) into&lt;br /&gt;
               the random number generator&lt;br /&gt;
cert.pem       recipient certificate(s) for encryption&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== smime v3 cms =====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
openssl cms --help&lt;br /&gt;
Usage cms [options] cert.pem ...&lt;br /&gt;
where options are&lt;br /&gt;
-encrypt       encrypt message&lt;br /&gt;
-decrypt       decrypt encrypted message&lt;br /&gt;
-sign          sign message&lt;br /&gt;
-verify        verify signed message&lt;br /&gt;
-cmsout        output CMS structure&lt;br /&gt;
-des3          encrypt with triple DES&lt;br /&gt;
-des           encrypt with DES&lt;br /&gt;
-seed          encrypt with SEED&lt;br /&gt;
-rc2-40        encrypt with RC2-40 (default)&lt;br /&gt;
-rc2-64        encrypt with RC2-64&lt;br /&gt;
-rc2-128       encrypt with RC2-128&lt;br /&gt;
-aes128, -aes192, -aes256&lt;br /&gt;
               encrypt PEM output with cbc aes&lt;br /&gt;
-camellia128, -camellia192, -camellia256&lt;br /&gt;
               encrypt PEM output with cbc camellia&lt;br /&gt;
-nointern      don't search certificates in message for signer&lt;br /&gt;
-nosigs        don't verify message signature&lt;br /&gt;
-noverify      don't verify signers certificate&lt;br /&gt;
-nocerts       don't include signers certificate when signing&lt;br /&gt;
-nodetach      use opaque signing&lt;br /&gt;
-noattr        don't include any signed attributes&lt;br /&gt;
-binary        don't translate message to text&lt;br /&gt;
-certfile file other certificates file&lt;br /&gt;
-certsout file certificate output file&lt;br /&gt;
-signer file   signer certificate file&lt;br /&gt;
-recip  file   recipient certificate file for decryption&lt;br /&gt;
-keyid         use subject key identifier&lt;br /&gt;
-in file       input file&lt;br /&gt;
-inform arg    input format SMIME (default), PEM or DER&lt;br /&gt;
-inkey file    input private key (if not signer or recipient)&lt;br /&gt;
-keyform arg   input private key format (PEM or ENGINE)&lt;br /&gt;
-out file      output file&lt;br /&gt;
-outform arg   output format SMIME (default), PEM or DER&lt;br /&gt;
-content file  supply or override content for detached signature&lt;br /&gt;
-to addr       to address&lt;br /&gt;
-from ad       from address&lt;br /&gt;
-subject s     subject&lt;br /&gt;
-text          include or delete text MIME headers&lt;br /&gt;
-CApath dir    trusted certificates directory&lt;br /&gt;
-CAfile file   trusted certificates file&lt;br /&gt;
-crl_check     check revocation status of signer's certificate using CRLs&lt;br /&gt;
-crl_check_all check revocation status of signer's certificate chain using CRLs&lt;br /&gt;
-engine e      use engine e, possibly a hardware device.&lt;br /&gt;
-passin arg    input file pass phrase source&lt;br /&gt;
-rand file:file:...&lt;br /&gt;
               load the file (or the files in the directory) into&lt;br /&gt;
               the random number generator&lt;br /&gt;
cert.pem       recipient certificate(s) for encryption&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Public Key Cryptographic Operations ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
openssl pkeyutl --help&lt;br /&gt;
Usage: pkeyutl [options]&lt;br /&gt;
-in file        input file&lt;br /&gt;
-out file       output file&lt;br /&gt;
-sigfile file signature file (verify operation only)&lt;br /&gt;
-inkey file     input key&lt;br /&gt;
-keyform arg    private key format - default PEM&lt;br /&gt;
-pubin          input is a public key&lt;br /&gt;
-certin         input is a certificate carrying a public key&lt;br /&gt;
-pkeyopt X:Y    public key options&lt;br /&gt;
-sign           sign with private key&lt;br /&gt;
-verify         verify with public key&lt;br /&gt;
-verifyrecover  verify with public key, recover original data&lt;br /&gt;
-encrypt        encrypt with public key&lt;br /&gt;
-decrypt        decrypt with private key&lt;br /&gt;
-derive         derive shared secret&lt;br /&gt;
-hexdump        hex dump output&lt;br /&gt;
-engine e       use engine e, possibly a hardware device.&lt;br /&gt;
-passin arg     pass phrase source&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Legacy RSA command:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
openssl rsautl --help&lt;br /&gt;
Usage: rsautl [options]&lt;br /&gt;
-in file        input file&lt;br /&gt;
-out file       output file&lt;br /&gt;
-inkey file     input key&lt;br /&gt;
-keyform arg    private key format - default PEM&lt;br /&gt;
-pubin          input is an RSA public&lt;br /&gt;
-certin         input is a certificate carrying an RSA public key&lt;br /&gt;
-ssl            use SSL v2 padding&lt;br /&gt;
-raw            use no padding&lt;br /&gt;
-pkcs           use PKCS#1 v1.5 padding (default)&lt;br /&gt;
-oaep           use PKCS#1 OAEP&lt;br /&gt;
-sign           sign with private key&lt;br /&gt;
-verify         verify with public key&lt;br /&gt;
-encrypt        encrypt with public key&lt;br /&gt;
-decrypt        decrypt with private key&lt;br /&gt;
-hexdump        hex dump output&lt;br /&gt;
-engine e       use engine e, possibly a hardware device.&lt;br /&gt;
-passin arg    pass phrase source&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Create / Handle Public Key Certificates ===&lt;br /&gt;
&lt;br /&gt;
This requires you have a knowledge of what PKI is ( Certificate Authorities, Certificate Request, Certificate, Public Key, Private Key )&lt;br /&gt;
&lt;br /&gt;
Classical use case is to obtain a valid Certificate for a Secured Web site ( https protocol ).&lt;br /&gt;
First you create a Private Key ( will be created together with Public key ).&lt;br /&gt;
Then create a Certificate Request for that private key with some informations for purpose of future Certificate.&lt;br /&gt;
Then send that Certificate Request to a Certificate Authority ( CA ) that will issue a Certificate that CA signed. For well known CA you need to pay. &lt;br /&gt;
Up to you to install your Private key together with the received Certificate on your system. &lt;br /&gt;
&lt;br /&gt;
It exists graphical front-end to operate openssl wihtin a GUI : [http://xca.sourceforge.net/ XCA]&lt;br /&gt;
&lt;br /&gt;
==== Key Generation ====&lt;br /&gt;
&lt;br /&gt;
===== rsa / genrsa =====&lt;br /&gt;
&lt;br /&gt;
RSA is the most common type of Public/Private Key.&lt;br /&gt;
Private Key part should never be disclosed while public key part is ... public.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
openssl genrsa --help&lt;br /&gt;
usage: genrsa [args] [numbits]&lt;br /&gt;
 -des            encrypt the generated key with DES in cbc mode&lt;br /&gt;
 -des3           encrypt the generated key with DES in ede cbc mode (168 bit key)&lt;br /&gt;
 -seed&lt;br /&gt;
                 encrypt PEM output with cbc seed&lt;br /&gt;
 -aes128, -aes192, -aes256&lt;br /&gt;
                 encrypt PEM output with cbc aes&lt;br /&gt;
 -camellia128, -camellia192, -camellia256&lt;br /&gt;
                 encrypt PEM output with cbc camellia&lt;br /&gt;
 -out file       output the key to 'file&lt;br /&gt;
 -passout arg    output file pass phrase source&lt;br /&gt;
 -f4             use F4 (0x10001) for the E value&lt;br /&gt;
 -3              use 3 for the E value&lt;br /&gt;
 -engine e       use engine e, possibly a hardware device.&lt;br /&gt;
 -rand file:file:...&lt;br /&gt;
                 load the file (or the files in the directory) into&lt;br /&gt;
                 the random number generator&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rsa help&lt;br /&gt;
unknown option help&lt;br /&gt;
rsa [options] &amp;lt;infile &amp;gt;outfile&lt;br /&gt;
where options are&lt;br /&gt;
 -inform arg     input format - one of DER NET PEM&lt;br /&gt;
 -outform arg    output format - one of DER NET PEM&lt;br /&gt;
 -in arg         input file&lt;br /&gt;
 -sgckey         Use IIS SGC key format&lt;br /&gt;
 -passin arg     input file pass phrase source&lt;br /&gt;
 -out arg        output file&lt;br /&gt;
 -passout arg    output file pass phrase source&lt;br /&gt;
 -des            encrypt PEM output with cbc des&lt;br /&gt;
 -des3           encrypt PEM output with ede cbc des using 168 bit key&lt;br /&gt;
 -seed           encrypt PEM output with cbc seed&lt;br /&gt;
 -aes128, -aes192, -aes256&lt;br /&gt;
                 encrypt PEM output with cbc aes&lt;br /&gt;
 -camellia128, -camellia192, -camellia256&lt;br /&gt;
                 encrypt PEM output with cbc camellia&lt;br /&gt;
 -text           print the key in text&lt;br /&gt;
 -noout          don't print key out&lt;br /&gt;
 -modulus        print the RSA key modulus&lt;br /&gt;
 -check          verify key consistency&lt;br /&gt;
 -pubin          expect a public key in input file&lt;br /&gt;
 -pubout         output a public key&lt;br /&gt;
 -engine e       use engine e, possibly a hardware device.&lt;br /&gt;
error in rsa&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== dsa / gendsa=====&lt;br /&gt;
&lt;br /&gt;
dsa is a less common Public/Private key scheme, but can be seen anyway, so ...&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
openssl gendsa&lt;br /&gt;
usage: gendsa [args] dsaparam-file&lt;br /&gt;
 -out file - output the key to 'file'&lt;br /&gt;
 -des      - encrypt the generated key with DES in cbc mode&lt;br /&gt;
 -des3     - encrypt the generated key with DES in ede cbc mode (168 bit key)&lt;br /&gt;
 -seed&lt;br /&gt;
                 encrypt PEM output with cbc seed&lt;br /&gt;
 -aes128, -aes192, -aes256&lt;br /&gt;
                 encrypt PEM output with cbc aes&lt;br /&gt;
 -camellia128, -camellia192, -camellia256&lt;br /&gt;
                 encrypt PEM output with cbc camellia&lt;br /&gt;
 -engine e - use engine e, possibly a hardware device.&lt;br /&gt;
 -rand file:file:...&lt;br /&gt;
           - load the file (or the files in the directory) into&lt;br /&gt;
             the random number generator&lt;br /&gt;
 dsaparam-file&lt;br /&gt;
           - a DSA parameter file as generated by the dsaparam command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
OpenSSL&amp;gt; dsa help&lt;br /&gt;
unknown option help&lt;br /&gt;
dsa [options] &amp;lt;infile &amp;gt;outfile&lt;br /&gt;
where options are&lt;br /&gt;
 -inform arg     input format - DER or PEM&lt;br /&gt;
 -outform arg    output format - DER or PEM&lt;br /&gt;
 -in arg         input file&lt;br /&gt;
 -passin arg     input file pass phrase source&lt;br /&gt;
 -out arg        output file&lt;br /&gt;
 -passout arg    output file pass phrase source&lt;br /&gt;
 -engine e       use engine e, possibly a hardware device.&lt;br /&gt;
 -des            encrypt PEM output with cbc des&lt;br /&gt;
 -des3           encrypt PEM output with ede cbc des using 168 bit key&lt;br /&gt;
 -aes128, -aes192, -aes256&lt;br /&gt;
                 encrypt PEM output with cbc aes&lt;br /&gt;
 -camellia128, -camellia192, -camellia256&lt;br /&gt;
                 encrypt PEM output with cbc camellia&lt;br /&gt;
 -seed           encrypt PEM output with cbc seed&lt;br /&gt;
 -text           print the key in text&lt;br /&gt;
 -noout          don't print key out&lt;br /&gt;
 -modulus        print the DSA public value&lt;br /&gt;
error in dsa&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== Elliptic Curves / ec ecparam =====&lt;br /&gt;
&lt;br /&gt;
[[Elliptic_Curve_Cryptography]]&lt;br /&gt;
&lt;br /&gt;
See [[Command Line Elliptic Curve Operations]] for a description of these commands.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
openssl ecparam --help&lt;br /&gt;
unknown option --help&lt;br /&gt;
ecparam [options] &amp;lt;infile &amp;gt;outfile&lt;br /&gt;
where options are&lt;br /&gt;
 -inform arg       input format - default PEM (DER or PEM)&lt;br /&gt;
 -outform arg      output format - default PEM&lt;br /&gt;
 -in  arg          input file  - default stdin&lt;br /&gt;
 -out arg          output file - default stdout&lt;br /&gt;
 -noout            do not print the ec parameter&lt;br /&gt;
 -text             print the ec parameters in text form&lt;br /&gt;
 -check            validate the ec parameters&lt;br /&gt;
 -C                print a 'C' function creating the parameters&lt;br /&gt;
 -name arg         use the ec parameters with 'short name' name&lt;br /&gt;
 -list_curves      prints a list of all currently available curve 'short names'&lt;br /&gt;
 -conv_form arg    specifies the point conversion form &lt;br /&gt;
                   possible values: compressed&lt;br /&gt;
                                    uncompressed (default)&lt;br /&gt;
                                    hybrid&lt;br /&gt;
 -param_enc arg    specifies the way the ec parameters are encoded&lt;br /&gt;
                   in the asn1 der encoding&lt;br /&gt;
                   possible values: named_curve (default)&lt;br /&gt;
                                    explicit&lt;br /&gt;
 -no_seed          if 'explicit' parameters are chosen do not use the seed&lt;br /&gt;
 -genkey           generate ec key&lt;br /&gt;
 -rand file        files to use for random number input&lt;br /&gt;
 -engine e         use engine e, possibly a hardware device&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ec [options] &amp;lt;infile &amp;gt;outfile&lt;br /&gt;
where options are&lt;br /&gt;
 -inform arg     input format - DER or PEM&lt;br /&gt;
 -outform arg    output format - DER or PEM&lt;br /&gt;
 -in arg         input file&lt;br /&gt;
 -passin arg     input file pass phrase source&lt;br /&gt;
 -out arg        output file&lt;br /&gt;
 -passout arg    output file pass phrase source&lt;br /&gt;
 -engine e       use engine e, possibly a hardware device.&lt;br /&gt;
 -des            encrypt PEM output, instead of 'des' every other &lt;br /&gt;
                 cipher supported by OpenSSL can be used&lt;br /&gt;
 -text           print the key&lt;br /&gt;
 -noout          don't print key out&lt;br /&gt;
 -param_out      print the elliptic curve parameters&lt;br /&gt;
 -conv_form arg  specifies the point conversion form &lt;br /&gt;
                 possible values: compressed&lt;br /&gt;
                                  uncompressed (default)&lt;br /&gt;
                                   hybrid&lt;br /&gt;
 -param_enc arg  specifies the way the ec parameters are encoded&lt;br /&gt;
                 in the asn1 der encoding&lt;br /&gt;
                 possible values: named_curve (default)&lt;br /&gt;
                                  explicit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Certificate Authority / ca ====&lt;br /&gt;
&lt;br /&gt;
When you want to act as a Certificate Authority.&lt;br /&gt;
&lt;br /&gt;
OpenSSL&amp;gt; ca&lt;br /&gt;
Using configuration from /usr/lib/ssl/openssl.cnf&lt;br /&gt;
Error opening CA private key ./demoCA/private/cakey.pem&lt;br /&gt;
140492277311144:error:02001002:system library:fopen:No such file or directory:bss_file.c:398:fopen('./demoCA/private/cakey.pem','r')&lt;br /&gt;
140492277311144:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:400:&lt;br /&gt;
unable to load CA private key&lt;br /&gt;
error in ca&lt;br /&gt;
&lt;br /&gt;
By default you don't have ca created...&lt;br /&gt;
&lt;br /&gt;
==== Certificate Request / pkcs10 / req ====&lt;br /&gt;
&lt;br /&gt;
OpenSSL&amp;gt; req ?&lt;br /&gt;
unknown option ?&lt;br /&gt;
req [options] &amp;lt;infile &amp;gt;outfile&lt;br /&gt;
where options  are&lt;br /&gt;
 -inform arg    input format - DER or PEM&lt;br /&gt;
 -outform arg   output format - DER or PEM&lt;br /&gt;
 -in arg        input file&lt;br /&gt;
 -out arg       output file&lt;br /&gt;
 -text          text form of request&lt;br /&gt;
 -pubkey        output public key&lt;br /&gt;
 -noout         do not output REQ&lt;br /&gt;
 -verify        verify signature on REQ&lt;br /&gt;
 -modulus       RSA modulus&lt;br /&gt;
 -nodes         don't encrypt the output key&lt;br /&gt;
 -engine e      use engine e, possibly a hardware device&lt;br /&gt;
 -subject       output the request's subject&lt;br /&gt;
 -passin        private key password source&lt;br /&gt;
 -key file      use the private key contained in file&lt;br /&gt;
 -keyform arg   key file format&lt;br /&gt;
 -keyout arg    file to send the key to&lt;br /&gt;
 -rand file:file:...&lt;br /&gt;
                load the file (or the files in the directory) into&lt;br /&gt;
                the random number generator&lt;br /&gt;
 -newkey rsa:bits generate a new RSA key of 'bits' in size&lt;br /&gt;
 -newkey dsa:file generate a new DSA key, parameters taken from CA in 'file'&lt;br /&gt;
 -newkey ec:file generate a new EC key, parameters taken from CA in 'file'&lt;br /&gt;
 -[digest]      Digest to sign with (md5, sha1, md2, mdc2, md4)&lt;br /&gt;
 -config file   request template file.&lt;br /&gt;
 -subj arg      set or modify request subject&lt;br /&gt;
 -multivalue-rdn enable support for multivalued RDNs&lt;br /&gt;
 -new           new request.&lt;br /&gt;
 -batch         do not ask anything during request generation&lt;br /&gt;
 -x509          output a x509 structure instead of a cert. req.&lt;br /&gt;
 -days          number of days a certificate generated by -x509 is valid for.&lt;br /&gt;
 -set_serial    serial number to use for a certificate generated by -x509.&lt;br /&gt;
 -newhdr        output &amp;quot;NEW&amp;quot; in the header lines&lt;br /&gt;
 -asn1-kludge   Output the 'request' in a format that is wrong but some CA's&lt;br /&gt;
                have been reported as requiring&lt;br /&gt;
 -extensions .. specify certificate extension section (override value in config file)&lt;br /&gt;
 -reqexts ..    specify request extension section (override value in config file)&lt;br /&gt;
 -utf8          input characters are UTF8 (default ASCII)&lt;br /&gt;
 -nameopt arg    - various certificate name options&lt;br /&gt;
 -reqopt arg    - various request text options&lt;br /&gt;
&lt;br /&gt;
error in req&lt;br /&gt;
&lt;br /&gt;
==== Certificates AKA x509  ====&lt;br /&gt;
&lt;br /&gt;
x509 command allows you to display content of a x509 certificate and to convert it from/to [[PEM]], [[NET]] or [[DER]] formats.&lt;br /&gt;
&lt;br /&gt;
OpenSSL&amp;gt; x509 help&lt;br /&gt;
unknown option help&lt;br /&gt;
usage: x509 args&lt;br /&gt;
 -inform arg     - input format - default PEM (one of DER, NET or PEM)&lt;br /&gt;
 -outform arg    - output format - default PEM (one of DER, NET or PEM)&lt;br /&gt;
 -keyform arg    - private key format - default PEM&lt;br /&gt;
 -CAform arg     - CA format - default PEM&lt;br /&gt;
 -CAkeyform arg  - CA key format - default PEM&lt;br /&gt;
 -in arg         - input file - default stdin&lt;br /&gt;
 -out arg        - output file - default stdout&lt;br /&gt;
 -passin arg     - private key password source&lt;br /&gt;
 -serial         - print serial number value&lt;br /&gt;
 -subject_hash   - print subject hash value&lt;br /&gt;
 -subject_hash_old   - print old-style (MD5) subject hash value&lt;br /&gt;
 -issuer_hash    - print issuer hash value&lt;br /&gt;
 -issuer_hash_old    - print old-style (MD5) issuer hash value&lt;br /&gt;
 -hash           - synonym for -subject_hash&lt;br /&gt;
 -subject        - print subject DN&lt;br /&gt;
 -issuer         - print issuer DN&lt;br /&gt;
 -email          - print email address(es)&lt;br /&gt;
 -startdate      - notBefore field&lt;br /&gt;
 -enddate        - notAfter field&lt;br /&gt;
 -purpose        - print out certificate purposes&lt;br /&gt;
 -dates          - both Before and After dates&lt;br /&gt;
 -modulus        - print the RSA key modulus&lt;br /&gt;
 -pubkey         - output the public key&lt;br /&gt;
 -fingerprint    - print the certificate fingerprint&lt;br /&gt;
 -alias          - output certificate alias&lt;br /&gt;
 -noout          - no certificate output&lt;br /&gt;
 -ocspid         - print OCSP hash values for the subject name and public key&lt;br /&gt;
 -ocsp_uri       - print OCSP Responder URL(s)&lt;br /&gt;
 -trustout       - output a &amp;quot;trusted&amp;quot; certificate&lt;br /&gt;
 -clrtrust       - clear all trusted purposes&lt;br /&gt;
 -clrreject      - clear all rejected purposes&lt;br /&gt;
 -addtrust arg   - trust certificate for a given purpose&lt;br /&gt;
 -addreject arg  - reject certificate for a given purpose&lt;br /&gt;
 -setalias arg   - set certificate alias&lt;br /&gt;
 -days arg       - How long till expiry of a signed certificate - def 30 days&lt;br /&gt;
 -checkend arg   - check whether the cert expires in the next arg seconds&lt;br /&gt;
                   exit 1 if so, 0 if not&lt;br /&gt;
 -signkey arg    - self sign cert with arg&lt;br /&gt;
 -x509toreq      - output a certification request object&lt;br /&gt;
 -req            - input is a certificate request, sign and output.&lt;br /&gt;
 -CA arg         - set the CA certificate, must be PEM format.&lt;br /&gt;
 -CAkey arg      - set the CA key, must be PEM format&lt;br /&gt;
                   missing, it is assumed to be in the CA file.&lt;br /&gt;
 -CAcreateserial - create serial number file if it does not exist&lt;br /&gt;
 -CAserial arg   - serial file&lt;br /&gt;
 -set_serial     - serial number to use&lt;br /&gt;
 -text           - print the certificate in text form&lt;br /&gt;
 -C              - print out C code forms&lt;br /&gt;
 -md2/-md5/-sha1/-mdc2 - digest to use&lt;br /&gt;
 -extfile        - configuration file with X509V3 extensions to add&lt;br /&gt;
 -extensions     - section from config file with X509V3 extensions to add&lt;br /&gt;
 -clrext         - delete extensions before signing and input certificate&lt;br /&gt;
 -nameopt arg    - various certificate name options&lt;br /&gt;
 -engine e       - use engine e, possibly a hardware device.&lt;br /&gt;
 -certopt arg    - various certificate text options&lt;br /&gt;
&lt;br /&gt;
==== Client Certificates AKA pkcs12 ====&lt;br /&gt;
&lt;br /&gt;
Client Certificate is a language abuse, but anyway it is kind of file you need to install on your system when SSL/TLS server require Client Authentication.&lt;br /&gt;
Those kind of certificates credentials are known with .'''pkcs12''' or .'''pfx''' file extension.&lt;br /&gt;
They contains a x509 Certificate and the public/private key of client. Those files are then very sensible to handle with same security as a private key.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Usage: pkcs12 [options]&lt;br /&gt;
where options are&lt;br /&gt;
-export       output PKCS12 file&lt;br /&gt;
-chain        add certificate chain&lt;br /&gt;
-inkey file   private key if not infile&lt;br /&gt;
-certfile f   add all certs in f&lt;br /&gt;
-CApath arg   - PEM format directory of CA's&lt;br /&gt;
-CAfile arg   - PEM format file of CA's&lt;br /&gt;
-name &amp;quot;name&amp;quot;  use name as friendly name&lt;br /&gt;
-caname &amp;quot;nm&amp;quot;  use nm as CA friendly name (can be used more than once).&lt;br /&gt;
-in  infile   input filename&lt;br /&gt;
-out outfile  output filename&lt;br /&gt;
-noout        don't output anything, just verify.&lt;br /&gt;
-nomacver     don't verify MAC.&lt;br /&gt;
-nocerts      don't output certificates.&lt;br /&gt;
-clcerts      only output client certificates.&lt;br /&gt;
-cacerts      only output CA certificates.&lt;br /&gt;
-nokeys       don't output private keys.&lt;br /&gt;
-info         give info about PKCS#12 structure.&lt;br /&gt;
-des          encrypt private keys with DES&lt;br /&gt;
-des3         encrypt private keys with triple DES (default)&lt;br /&gt;
-seed         encrypt private keys with seed&lt;br /&gt;
-aes128, -aes192, -aes256&lt;br /&gt;
              encrypt PEM output with cbc aes&lt;br /&gt;
-camellia128, -camellia192, -camellia256&lt;br /&gt;
              encrypt PEM output with cbc camellia&lt;br /&gt;
-nodes        don't encrypt private keys&lt;br /&gt;
-noiter       don't use encryption iteration&lt;br /&gt;
-nomaciter    don't use MAC iteration&lt;br /&gt;
-maciter      use MAC iteration&lt;br /&gt;
-nomac        don't generate MAC&lt;br /&gt;
-twopass      separate MAC, encryption passwords&lt;br /&gt;
-descert      encrypt PKCS#12 certificates with triple DES (default RC2-40)&lt;br /&gt;
-certpbe alg  specify certificate PBE algorithm (default RC2-40)&lt;br /&gt;
-keypbe alg   specify private key PBE algorithm (default 3DES)&lt;br /&gt;
-macalg alg   digest algorithm used in MAC (default SHA1)&lt;br /&gt;
-keyex        set MS key exchange type&lt;br /&gt;
-keysig       set MS key signature type&lt;br /&gt;
-password p   set import/export password source&lt;br /&gt;
-passin p     input file pass phrase source&lt;br /&gt;
-passout p    output file pass phrase source&lt;br /&gt;
-engine e     use engine e, possibly a hardware device.&lt;br /&gt;
-rand file:file:...&lt;br /&gt;
              load the file (or the files in the directory) into&lt;br /&gt;
              the random number generator&lt;br /&gt;
-CSP name     Microsoft CSP name&lt;br /&gt;
-LMK          Add local machine keyset attribute to private key&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== SSL/TLS and Certificates ONLINE services ===&lt;br /&gt;
&lt;br /&gt;
==== s_server ====&lt;br /&gt;
&lt;br /&gt;
This implements a generic SSL/TLS server. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
openssl s_server&lt;br /&gt;
Error opening server certificate private key file server.pem&lt;br /&gt;
139811478357672:error:02001002:system library:fopen:No such file or directory:bss_file.c:398:fopen('server.pem','r')&lt;br /&gt;
139811478357672:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:400:&lt;br /&gt;
unable to load server certificate private key file&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''you need to provide certificate and private key to be able to run SSL/TLS server.'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
openssl s_server --help&lt;br /&gt;
unknown option --help&lt;br /&gt;
usage: s_server [args ...]&lt;br /&gt;
&lt;br /&gt;
 -accept arg   - port to accept on (default is 4433)&lt;br /&gt;
 -context arg  - set session ID context&lt;br /&gt;
 -verify arg   - turn on peer certificate verification&lt;br /&gt;
 -Verify arg   - turn on peer certificate verification, must have a cert.&lt;br /&gt;
 -cert arg     - certificate file to use&lt;br /&gt;
                 (default is server.pem)&lt;br /&gt;
 -crl_check    - check the peer certificate has not been revoked by its CA.&lt;br /&gt;
                 The CRL(s) are appended to the certificate file&lt;br /&gt;
 -crl_check_all - check the peer certificate has not been revoked by its CA&lt;br /&gt;
                 or any other CRL in the CA chain. CRL(s) are appened to the&lt;br /&gt;
                 the certificate file.&lt;br /&gt;
 -certform arg - certificate format (PEM or DER) PEM default&lt;br /&gt;
 -key arg      - Private Key file to use, in cert file if&lt;br /&gt;
                 not specified (default is server.pem)&lt;br /&gt;
 -keyform arg  - key format (PEM, DER or ENGINE) PEM default&lt;br /&gt;
 -pass arg     - private key file pass phrase source&lt;br /&gt;
 -dcert arg    - second certificate file to use (usually for DSA)&lt;br /&gt;
 -dcertform x  - second certificate format (PEM or DER) PEM default&lt;br /&gt;
 -dkey arg     - second private key file to use (usually for DSA)&lt;br /&gt;
 -dkeyform arg - second key format (PEM, DER or ENGINE) PEM default&lt;br /&gt;
 -dpass arg    - second private key file pass phrase source&lt;br /&gt;
 -dhparam arg  - DH parameter file to use, in cert file if not specified&lt;br /&gt;
                 or a default set of parameters is used&lt;br /&gt;
 -named_curve arg  - Elliptic curve name to use for ephemeral ECDH keys.&lt;br /&gt;
                 Use &amp;quot;openssl ecparam -list_curves&amp;quot; for all names&lt;br /&gt;
                 (default is nistp256).&lt;br /&gt;
 -nbio         - Run with non-blocking IO&lt;br /&gt;
 -nbio_test    - test with the non-blocking test bio&lt;br /&gt;
 -crlf         - convert LF from terminal into CRLF&lt;br /&gt;
 -debug        - Print more output&lt;br /&gt;
 -msg          - Show protocol messages&lt;br /&gt;
 -state        - Print the SSL states&lt;br /&gt;
 -CApath arg   - PEM format directory of CA's&lt;br /&gt;
 -CAfile arg   - PEM format file of CA's&lt;br /&gt;
 -nocert       - Don't use any certificates (Anon-DH)&lt;br /&gt;
 -cipher arg   - play with 'openssl ciphers' to see what goes here&lt;br /&gt;
 -serverpref   - Use server's cipher preferences&lt;br /&gt;
 -quiet        - No server output&lt;br /&gt;
 -no_tmp_rsa   - Do not generate a tmp RSA key&lt;br /&gt;
 -psk_hint arg - PSK identity hint to use&lt;br /&gt;
 -psk arg      - PSK in hex (without 0x)&lt;br /&gt;
 -srpvfile file      - The verifier file for SRP&lt;br /&gt;
 -srpuserseed string - A seed string for a default user salt.&lt;br /&gt;
 -ssl2         - Just talk SSLv2&lt;br /&gt;
 -ssl3         - Just talk SSLv3&lt;br /&gt;
 -tls1_2       - Just talk TLSv1.2&lt;br /&gt;
 -tls1_1       - Just talk TLSv1.1&lt;br /&gt;
 -tls1         - Just talk TLSv1&lt;br /&gt;
 -dtls1        - Just talk DTLSv1&lt;br /&gt;
 -timeout      - Enable timeouts&lt;br /&gt;
 -mtu          - Set link layer MTU&lt;br /&gt;
 -chain        - Read a certificate chain&lt;br /&gt;
 -no_ssl2      - Just disable SSLv2&lt;br /&gt;
 -no_ssl3      - Just disable SSLv3&lt;br /&gt;
 -no_tls1      - Just disable TLSv1&lt;br /&gt;
 -no_tls1_1    - Just disable TLSv1.1&lt;br /&gt;
 -no_tls1_2    - Just disable TLSv1.2&lt;br /&gt;
 -no_dhe       - Disable ephemeral DH&lt;br /&gt;
 -no_ecdhe     - Disable ephemeral ECDH&lt;br /&gt;
 -bugs         - Turn on SSL bug compatibility&lt;br /&gt;
 -www          - Respond to a 'GET /' with a status page&lt;br /&gt;
 -WWW          - Respond to a 'GET /&amp;lt;path&amp;gt; HTTP/1.0' with file ./&amp;lt;path&amp;gt;&lt;br /&gt;
 -HTTP         - Respond to a 'GET /&amp;lt;path&amp;gt; HTTP/1.0' with file ./&amp;lt;path&amp;gt;&lt;br /&gt;
                 with the assumption it contains a complete HTTP response.&lt;br /&gt;
 -engine id    - Initialise and use the specified engine&lt;br /&gt;
 -id_prefix arg - Generate SSL/TLS session IDs prefixed by 'arg'&lt;br /&gt;
 -rand file:file:...&lt;br /&gt;
 -servername host - servername for HostName TLS extension&lt;br /&gt;
 -servername_fatal - on mismatch send fatal alert (default warning alert)&lt;br /&gt;
 -cert2 arg    - certificate file to use for servername&lt;br /&gt;
                 (default is server2.pem)&lt;br /&gt;
 -key2 arg     - Private Key file to use for servername, in cert file if&lt;br /&gt;
                 not specified (default is server2.pem)&lt;br /&gt;
 -tlsextdebug  - hex dump of all TLS extensions received&lt;br /&gt;
 -no_ticket    - disable use of RFC4507bis session tickets&lt;br /&gt;
 -legacy_renegotiation - enable use of legacy renegotiation (dangerous)&lt;br /&gt;
 -nextprotoneg arg - set the advertised protocols for the NPN extension (comma-separated list)&lt;br /&gt;
 -use_srtp profiles - Offer SRTP key management with a colon-separated profile list&lt;br /&gt;
 -keymatexport label   - Export keying material using label&lt;br /&gt;
 -keymatexportlen len  - Export len bytes of keying material (default 20)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== s_client ====&lt;br /&gt;
&lt;br /&gt;
This implements a generic SSL/TLS client&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
unknown option --help&lt;br /&gt;
usage: s_client args&lt;br /&gt;
&lt;br /&gt;
 -host host     - use -connect instead&lt;br /&gt;
 -port port     - use -connect instead&lt;br /&gt;
 -connect host:port - who to connect to (default is localhost:4433)&lt;br /&gt;
 -verify arg   - turn on peer certificate verification&lt;br /&gt;
 -cert arg     - certificate file to use, PEM format assumed&lt;br /&gt;
 -certform arg - certificate format (PEM or DER) PEM default&lt;br /&gt;
 -key arg      - Private key file to use, in cert file if&lt;br /&gt;
                 not specified but cert file is.&lt;br /&gt;
 -keyform arg  - key format (PEM or DER) PEM default&lt;br /&gt;
 -pass arg     - private key file pass phrase source&lt;br /&gt;
 -CApath arg   - PEM format directory of CA's&lt;br /&gt;
 -CAfile arg   - PEM format file of CA's&lt;br /&gt;
 -reconnect    - Drop and re-make the connection with the same Session-ID&lt;br /&gt;
 -pause        - sleep(1) after each read(2) and write(2) system call&lt;br /&gt;
 -showcerts    - show all certificates in the chain&lt;br /&gt;
 -debug        - extra output&lt;br /&gt;
 -msg          - Show protocol messages&lt;br /&gt;
 -nbio_test    - more ssl protocol testing&lt;br /&gt;
 -state        - print the 'ssl' states&lt;br /&gt;
 -nbio         - Run with non-blocking IO&lt;br /&gt;
 -crlf         - convert LF from terminal into CRLF&lt;br /&gt;
 -quiet        - no s_client output&lt;br /&gt;
 -ign_eof      - ignore input eof (default when -quiet)&lt;br /&gt;
 -no_ign_eof   - don't ignore input eof&lt;br /&gt;
 -psk_identity arg - PSK identity&lt;br /&gt;
 -psk arg      - PSK in hex (without 0x)&lt;br /&gt;
 -srpuser user     - SRP authentification for 'user'&lt;br /&gt;
 -srppass arg      - password for 'user'&lt;br /&gt;
 -srp_lateuser     - SRP username into second ClientHello message&lt;br /&gt;
 -srp_moregroups   - Tolerate other than the known g N values.&lt;br /&gt;
 -srp_strength int - minimal mength in bits for N (default 1024).&lt;br /&gt;
 -ssl2         - just use SSLv2&lt;br /&gt;
 -ssl3         - just use SSLv3&lt;br /&gt;
 -tls1_2       - just use TLSv1.2&lt;br /&gt;
 -tls1_1       - just use TLSv1.1&lt;br /&gt;
 -tls1         - just use TLSv1&lt;br /&gt;
 -dtls1        - just use DTLSv1&lt;br /&gt;
 -mtu          - set the link layer MTU&lt;br /&gt;
 -no_tls1_2/-no_tls1_1/-no_tls1/-no_ssl3/-no_ssl2 - turn off that protocol&lt;br /&gt;
 -bugs         - Switch on all SSL implementation bug workarounds&lt;br /&gt;
 -serverpref   - Use server's cipher preferences (only SSLv2)&lt;br /&gt;
 -cipher       - preferred cipher to use, use the 'openssl ciphers'&lt;br /&gt;
                 command to see what is available&lt;br /&gt;
 -starttls prot - use the STARTTLS command before starting TLS&lt;br /&gt;
                 for those protocols that support it, where&lt;br /&gt;
                 'prot' defines which one to assume.  Currently,&lt;br /&gt;
                 only &amp;quot;smtp&amp;quot;, &amp;quot;pop3&amp;quot;, &amp;quot;imap&amp;quot;, &amp;quot;ftp&amp;quot; and &amp;quot;xmpp&amp;quot;&lt;br /&gt;
                 are supported.&lt;br /&gt;
 -engine id    - Initialise and use the specified engine&lt;br /&gt;
 -rand file:file:...&lt;br /&gt;
 -sess_out arg - file to write SSL session to&lt;br /&gt;
 -sess_in arg  - file to read SSL session from&lt;br /&gt;
 -servername host  - Set TLS extension servername in ClientHello&lt;br /&gt;
 -tlsextdebug      - hex dump of all TLS extensions received&lt;br /&gt;
 -status           - request certificate status from server&lt;br /&gt;
 -no_ticket        - disable use of RFC4507bis session tickets&lt;br /&gt;
 -nextprotoneg arg - enable NPN extension, considering named protocols supported (comma-separated list)&lt;br /&gt;
 -legacy_renegotiation - enable use of legacy renegotiation (dangerous)&lt;br /&gt;
 -use_srtp profiles - Offer SRTP key management with a colon-separated profile list&lt;br /&gt;
 -keymatexport label   - Export keying material using label&lt;br /&gt;
 -keymatexportlen len  - Export len bytes of keying material (default 20)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== ocsp ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Signing / Digest and Timestamping ===&lt;br /&gt;
&lt;br /&gt;
==== Signing / Digest ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
openssl dgst --help&lt;br /&gt;
unknown option '--help'&lt;br /&gt;
options are&lt;br /&gt;
-c              to output the digest with separating colons&lt;br /&gt;
-r              to output the digest in coreutils format&lt;br /&gt;
-d              to output debug info&lt;br /&gt;
-hex            output as hex dump&lt;br /&gt;
-binary         output in binary form&lt;br /&gt;
-hmac arg       set the HMAC key to arg&lt;br /&gt;
-non-fips-allow allow use of non FIPS digest&lt;br /&gt;
-sign   file    sign digest using private key in file&lt;br /&gt;
-verify file    verify a signature using public key in file&lt;br /&gt;
-prverify file  verify a signature using private key in file&lt;br /&gt;
-keyform arg    key file format (PEM or ENGINE)&lt;br /&gt;
-out filename   output to filename rather than stdout&lt;br /&gt;
-signature file signature to verify&lt;br /&gt;
-sigopt nm:v    signature parameter&lt;br /&gt;
-hmac key       create hashed MAC with key&lt;br /&gt;
-mac algorithm  create MAC (not neccessarily HMAC)&lt;br /&gt;
-macopt nm:v    MAC algorithm parameters or key&lt;br /&gt;
-engine e       use engine e, possibly a hardware device.&lt;br /&gt;
-md4            to use the md4 message digest algorithm&lt;br /&gt;
-md5            to use the md5 message digest algorithm&lt;br /&gt;
-ripemd160      to use the ripemd160 message digest algorithm&lt;br /&gt;
-sha            to use the sha message digest algorithm&lt;br /&gt;
-sha1           to use the sha1 message digest algorithm&lt;br /&gt;
-sha224         to use the sha224 message digest algorithm&lt;br /&gt;
-sha256         to use the sha256 message digest algorithm&lt;br /&gt;
-sha384         to use the sha384 message digest algorithm&lt;br /&gt;
-sha512         to use the sha512 message digest algorithm&lt;br /&gt;
-whirlpool      to use the whirlpool message digest algorithm&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
==== timestamping ====&lt;br /&gt;
&lt;br /&gt;
openssl ts&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
usage:&lt;br /&gt;
ts -query [-rand file:file:...] [-config configfile] [-data file_to_hash] [-digest digest_bytes][-md2|-md4|-md5|-sha|-sha1|-mdc2|-ripemd160] [-policy object_id] [-no_nonce] [-cert] [-in request.tsq] [-out request.tsq] [-text]&lt;br /&gt;
or&lt;br /&gt;
ts -reply [-config configfile] [-section tsa_section] [-queryfile request.tsq] [-passin password] [-signer tsa_cert.pem] [-inkey private_key.pem] [-chain certs_file.pem] [-policy object_id] [-in response.tsr] [-token_in] [-out response.tsr] [-token_out] [-text] [-engine id]&lt;br /&gt;
or&lt;br /&gt;
ts -verify [-data file_to_hash] [-digest digest_bytes] [-queryfile request.tsq] -in response.tsr [-token_in] -CApath ca_path -CAfile ca_file.pem -untrusted cert_file.pem&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Data handling ===&lt;br /&gt;
&lt;br /&gt;
==== ASN.1 ====&lt;br /&gt;
&lt;br /&gt;
[[DER]] decoding &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
openssl asn1parse --help&lt;br /&gt;
unknown option --help&lt;br /&gt;
asn1parse [options] &amp;lt;infile&lt;br /&gt;
where options are&lt;br /&gt;
 -inform arg   input format - one of DER PEM&lt;br /&gt;
 -in arg       input file&lt;br /&gt;
 -out arg      output file (output format is always DER&lt;br /&gt;
 -noout arg    don't produce any output&lt;br /&gt;
 -offset arg   offset into file&lt;br /&gt;
 -length arg   length of section in file&lt;br /&gt;
 -i            indent entries&lt;br /&gt;
 -dump         dump unknown data in hex form&lt;br /&gt;
 -dlimit arg   dump the first arg bytes of unknown data in hex form&lt;br /&gt;
 -oid file     file of extra oid definitions&lt;br /&gt;
 -strparse offset&lt;br /&gt;
               a series of these can be used to 'dig' into multiple&lt;br /&gt;
               ASN1 blob wrappings&lt;br /&gt;
 -genstr str   string to generate ASN1 structure from&lt;br /&gt;
 -genconf file file to generate ASN1 structure from&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Base64 ====&lt;br /&gt;
&lt;br /&gt;
base64 encoding / decoding&lt;br /&gt;
&lt;br /&gt;
[[Base64]]&lt;br /&gt;
&lt;br /&gt;
===== a String =====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
openssl base64 -e &amp;lt;&amp;lt;&amp;lt; 'Welcome to openssl wiki'&lt;br /&gt;
V2VsY29tZSB0byBvcGVuc3NsIHdpa2kK&lt;br /&gt;
openssl base64 -d &amp;lt;&amp;lt;&amp;lt; 'V2VsY29tZSB0byBvcGVuc3NsIHdpa2kK'&lt;br /&gt;
Welcome to openssl wiki&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
warning '''base64 line length is limited to 76 characters by default in openssl''' ( and generated with 64 characters / line ).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
openssl base64 -e &amp;lt;&amp;lt;&amp;lt; 'Welcome to openssl wiki with a very long line that splits...'&lt;br /&gt;
V2VsY29tZSB0byBvcGVuc3NsIHdpa2kgd2l0aCBhIHZlcnkgbG9uZyBsaW5lIHRo&lt;br /&gt;
YXQgc3BsaXRzLi4uCg==&lt;br /&gt;
openssl base64 -d &amp;lt;&amp;lt;&amp;lt; 'V2VsY29tZSB0byBvcGVuc3NsIHdpa2kgd2l0aCBhIHZlcnkgbG9uZyBsaW5lIHRoYXQgc3BsaXRzLi4uCg=='&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
=&amp;gt; NOTHING !&lt;br /&gt;
&lt;br /&gt;
to be able to decode a base64 line without line feed that exceed 76 characters use -A option :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
openssl base64 -d -A &amp;lt;&amp;lt;&amp;lt; 'V2VsY29tZSB0byBvcGVuc3NsIHdpa2kgd2l0aCBhIHZlcnkgbG9uZyBsaW5lIHRoYXQgc3BsaXRzLi4uCg=='&lt;br /&gt;
Welcome to openssl wiki with a very long line that splits...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is anyway better to actualy split base64 result in 64 characters lines since -A option is BUGGY ( limit with long files ).&lt;br /&gt;
&lt;br /&gt;
==== DER &amp;lt;-&amp;gt; PEM conversion ====&lt;br /&gt;
&lt;br /&gt;
on each command handling PEM and DER format an '''inform''' and '''outform''' options are provided to specify it.&lt;br /&gt;
Then it is easy to read it in format and write it in another&lt;br /&gt;
&lt;br /&gt;
==== pkcs8 / pkcs5 ====&lt;br /&gt;
&lt;br /&gt;
pkcs8 is a format to store private keys.&lt;br /&gt;
pkcs8 uses various pkcs5 version as subformat.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
openssl pkcs8 --help&lt;br /&gt;
Usage pkcs8 [options]&lt;br /&gt;
where options are&lt;br /&gt;
-in file        input file&lt;br /&gt;
-inform X       input format (DER or PEM)&lt;br /&gt;
-passin arg     input file pass phrase source&lt;br /&gt;
-outform X      output format (DER or PEM)&lt;br /&gt;
-out file       output file&lt;br /&gt;
-passout arg    output file pass phrase source&lt;br /&gt;
-topk8          output PKCS8 file&lt;br /&gt;
-nooct          use (nonstandard) no octet format&lt;br /&gt;
-embed          use (nonstandard) embedded DSA parameters format&lt;br /&gt;
-nsdb           use (nonstandard) DSA Netscape DB format&lt;br /&gt;
-noiter         use 1 as iteration count&lt;br /&gt;
-nocrypt        use or expect unencrypted private key&lt;br /&gt;
-v2 alg         use PKCS#5 v2.0 and cipher &amp;quot;alg&amp;quot;&lt;br /&gt;
-v1 obj         use PKCS#5 v1.5 and cipher &amp;quot;alg&amp;quot;&lt;br /&gt;
 -engine e       use engine e, possibly a hardware device.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Diagnostics ===&lt;br /&gt;
&lt;br /&gt;
==== SSL/TLS session information ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
openssl sess_id --help&lt;br /&gt;
unknown option --help&lt;br /&gt;
usage: sess_id args&lt;br /&gt;
&lt;br /&gt;
 -inform arg     - input format - default PEM (DER or PEM)&lt;br /&gt;
 -outform arg    - output format - default PEM&lt;br /&gt;
 -in arg         - input file - default stdin&lt;br /&gt;
 -out arg        - output file - default stdout&lt;br /&gt;
 -text           - print ssl session id details&lt;br /&gt;
 -cert           - output certificate &lt;br /&gt;
 -noout          - no CRL output&lt;br /&gt;
 -context arg    - set the session ID context&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Further reading ==&lt;br /&gt;
&lt;br /&gt;
* Paul Heinlein. [https://www.madboa.com/geek/openssl/ &amp;quot;OpenSSL Command-Line HOWTO&amp;quot;]. Has many quick cookbook-style recipes for doing common tasks using the &amp;quot;oppenssl&amp;quot; command-line application.&lt;br /&gt;
&lt;br /&gt;
[[Category:Shell level]]&lt;/div&gt;</summary>
		<author><name>DavidCary</name></author>
	</entry>
	<entry>
		<id>https://wiki.openssl.org/index.php?title=Related_Links&amp;diff=1600</id>
		<title>Related Links</title>
		<link rel="alternate" type="text/html" href="https://wiki.openssl.org/index.php?title=Related_Links&amp;diff=1600"/>
		<updated>2014-04-16T04:33:50Z</updated>

		<summary type="html">&lt;p&gt;DavidCary: link to independent (?) third party discussion&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Please feel free to edit this page and add your own OpenSSL-based project or product. This is the one place where otherwise extraneous mention of commercial products is appropriate. Note such mention does not constitute endorsement per our [[Commercial Product Disclaimer]].&lt;br /&gt;
&lt;br /&gt;
== Open Source Cryptographic Libraries ==&lt;br /&gt;
&lt;br /&gt;
Products which are available under some form of Open Source license, and which may also be available under some form of commercial license.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|+ Open Source Cryptographic Libraries&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;150px&amp;quot; | Library&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; class=&amp;quot;unsortable&amp;quot; | Description&lt;br /&gt;
|-&lt;br /&gt;
| [http://botan.randombit.net/ Botan]  || a C++ cryptography library which includes a TLS implementation&lt;br /&gt;
|-&lt;br /&gt;
| [http://www.bouncycastle.org/ Bouncy Castle] || cryptography API for Java and C# ([[Wikipedia: Bouncy Castle (cryptography)]])&lt;br /&gt;
|-&lt;br /&gt;
| [http://www.cs.auckland.ac.nz/~pgut001/cryptlib/ Cryptlib] || a security toolkit that allows one to easily add encryption and authentication services to software&lt;br /&gt;
|-&lt;br /&gt;
| [http://www.cryptopp.com/ Crypto++] || a free C++ class library of cryptographic schemes&lt;br /&gt;
|-&lt;br /&gt;
| [http://www.gnutls.org/ GnuTLS] || an LGPL-licensed TLS library with substantial documentation&lt;br /&gt;
|-&lt;br /&gt;
| [http://libtom.org/ LibTomCrypt] || public domain open source crypto library written in C&lt;br /&gt;
|-&lt;br /&gt;
| [http://www.mitls.org/wsgi miTLS] || a verified reference implementation of the TLS protocol. ([http://www.reddit.com/r/netsec/comments/1zn2d3/mitls_a_verified_reference_tls_implementation/ &amp;quot;reddit: miTLS - A verified reference TLS implementation&amp;quot;])&lt;br /&gt;
|-&lt;br /&gt;
| [http://nacl.cr.yp.to/ NaCl] || NaCl (pronounced &amp;quot;salt&amp;quot;) is a easy-to-use high-speed software library for network communication, encryption, decryption, and signatures&lt;br /&gt;
|-&lt;br /&gt;
| [http://www.mozilla.org/projects/security/pki/nss/ NSS] || a set of libraries designed to support cross-platform development of security-enabled client and server applications&lt;br /&gt;
|-&lt;br /&gt;
| [http://polarssl.org/ PolarSSL] || an SSL library that handles the complexities of the Secure Sockets Layer (SSL) protocol for an application ([[Wikipedia: PolarSSL]])&lt;br /&gt;
|-&lt;br /&gt;
| [http://www.ohloh.net/projects/xyssl XySSL] || a C library providing a very small footprint crypto library and SSL implementation.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Open Source Products Using OpenSSL ==&lt;br /&gt;
&lt;br /&gt;
Products which are available under some form of Open Source License, and which may also be available under some form of commercial license.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|+ Open Source Products Using OpenSSL&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;150px&amp;quot; | Product&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; class=&amp;quot;unsortable&amp;quot; | Description&lt;br /&gt;
|-&lt;br /&gt;
| [http://libevent.org/ libevent] || an event driven library which can [http://www.wangafu.net/~nickm/libevent-book/Ref6a_advanced_bufferevents.html#_bufferevents_and_ssl optionally use OpenSSL]&lt;br /&gt;
|-&lt;br /&gt;
| [http://en.wikipedia.org/wiki/Mod_ssl mod_ssl] || SSL/TLS module for the [http://en.wikipedia.org/wiki/Apache_HTTP_Server Apache HTTP Server]&lt;br /&gt;
|-&lt;br /&gt;
|[https://www.stunnel.org/index.html Stunnel] || an SSL encryption wrapper between remote client and local (inetd-startable) or remote server&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Closed Source Cryptographic Libraries ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|+ Closed Source Cryptographic Libraries&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;150px&amp;quot; | Library&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; class=&amp;quot;unsortable&amp;quot; | Description&lt;br /&gt;
|-&lt;br /&gt;
| [http://www.example.com No Entry]  || This is a placeholder&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Closed Source Products Using OpenSSL ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|+ Closed Source Products Using OpenSSL&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;150px&amp;quot; | Product&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; class=&amp;quot;unsortable&amp;quot; | Description&lt;br /&gt;
|-&lt;br /&gt;
| [http://www.example.com No Entry]  || This is a placeholder&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Books and Documentation == &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|+ Books and Documentation&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;150px&amp;quot; | Title&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; class=&amp;quot;unsortable&amp;quot; | Description&lt;br /&gt;
|-&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Comparison_of_TLS_implementations Comparison of TLS implementations]  || Wikipedia article comparing various TLS libraries&lt;br /&gt;
|-&lt;br /&gt;
| [http://www.keylength.com/ keylength.com]  || site which summarizes various key length recommendations&lt;br /&gt;
|-&lt;br /&gt;
| [https://www.feistyduck.com/books/openssl-cookbook/ OpenSSL Cookbook]  || A free ebook that covers configuration and command-line usage (first&lt;br /&gt;
published in 2013; continuously updated)&lt;br /&gt;
|-&lt;br /&gt;
| [http://shop.oreilly.com/product/9780596002701.do Network Security with OpenSSL]  || O'Reilly book from 2002&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>DavidCary</name></author>
	</entry>
	<entry>
		<id>https://wiki.openssl.org/index.php?title=Libcrypto_API&amp;diff=1473</id>
		<title>Libcrypto API</title>
		<link rel="alternate" type="text/html" href="https://wiki.openssl.org/index.php?title=Libcrypto_API&amp;diff=1473"/>
		<updated>2014-02-10T15:02:26Z</updated>

		<summary type="html">&lt;p&gt;DavidCary: link to article that goes into more detail, etc.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;OpenSSL provides two primary libraries: [[Libssl API|libssl]] and libcrypto. The libcrypto library provides the fundamental cryptographic routines used by [[Libssl API|libssl]]. You can however use libcrypto without using [[Libssl API|libssl]].&lt;br /&gt;
&lt;br /&gt;
==Getting Started==&lt;br /&gt;
&lt;br /&gt;
In order to use libcrypto it must first (typically) be initialised:&lt;br /&gt;
&lt;br /&gt;
 #include &amp;lt;openssl/conf.h&amp;gt;&lt;br /&gt;
 #include &amp;lt;openssl/evp.h&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 int main(int arc, char *argv[])&lt;br /&gt;
 { &lt;br /&gt;
   /* Load the human readable error strings for libcrypto */&lt;br /&gt;
   ERR_load_crypto_strings();&lt;br /&gt;
 &lt;br /&gt;
   /* Load all digest and cipher algorithms */&lt;br /&gt;
   OpenSSL_add_all_algorithms();&lt;br /&gt;
 &lt;br /&gt;
   /* Load config file, and other important initialisation */&lt;br /&gt;
   OPENSSL_config(NULL);&lt;br /&gt;
 &lt;br /&gt;
   /* ... Do some crypto stuff here ... */&lt;br /&gt;
 &lt;br /&gt;
   /* Clean up */&lt;br /&gt;
 &lt;br /&gt;
   /* Removes all digests and ciphers */&lt;br /&gt;
   EVP_cleanup();&lt;br /&gt;
 &lt;br /&gt;
   /* Remove error strings */&lt;br /&gt;
   ERR_free_strings();&lt;br /&gt;
 &lt;br /&gt;
   return 0;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
==High Level and Low Level Interfaces==&lt;br /&gt;
&lt;br /&gt;
For most uses, users should use the high level interface that is provided for performing cryptographic operations. This is known as the [[EVP]] interface (short for Envelope). This interface provides a suite of functions for performing encryption/decryption (both symmetric and asymmetric), signing/verifying, as well as generating hashes and MAC codes, across the full range of OpenSSL supported algorithms and modes. Working with the high level interface means that a lot of the complexity of performing cryptographic operations is hidden from view. A single consistent API is provided. In the event that you need to change your code to use a different algorithm (for example), then this is a simple change when using the high level interface. In addition low level issues such as padding and encryption modes are all handled for you.&lt;br /&gt;
&lt;br /&gt;
Refer to [[EVP]] for further information on the high level interface.&lt;br /&gt;
&lt;br /&gt;
In addition to the high level interface, OpenSSL also provides low level interfaces for working directly with the individual algorithms. These low level interfaces are not recommended for the novice user, but provide a degree of control that may not be possible when using only the high level interface. Note that many low-level interfaces are not available if you are running in [[FIPS 140-2|FIPS]] mode.&lt;br /&gt;
&lt;br /&gt;
==Error Handling==&lt;br /&gt;
&lt;br /&gt;
Most OpenSSL functions will return an integer to indicate success or failure. Typically a function will return 1 on success or 0 on error. All return codes should be checked and handled as appropriate.&lt;br /&gt;
&lt;br /&gt;
It is common to see errors handled in a way similar to the following:&lt;br /&gt;
&lt;br /&gt;
   if(1 != EVP_xxx()) goto err;&lt;br /&gt;
   if(1 != EVP_yyy()) goto err;&lt;br /&gt;
 &lt;br /&gt;
   /* ... do some stuff ... */&lt;br /&gt;
 &lt;br /&gt;
 err:&lt;br /&gt;
   ERR_print_errors_fp(stderr);&lt;br /&gt;
&lt;br /&gt;
Note that not all of the libcrypto functions return 0 for error and 1 for success. There '''are''' exceptions which can trip up the unwary. For example if you want to check a signature with some functions you get 1 if the signature is correct, 0 if it is not correct and -1 if something bad happened like a memory allocation failure. So if you do:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 if (some_verify_function())&lt;br /&gt;
    /* signature successful */&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and someone can induce the &amp;quot;something bad happened&amp;quot; condition you end up behaving as though a bad signature is good. This one cropped up in the library internals at one point and was fixed in a security release. Currently you should check the manual pages or the source to be sure.&lt;br /&gt;
&lt;br /&gt;
One way to avoid being bitten by this potential problem is to always use this idiom to check for errors when calling an OpenSSL function:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 if (1 != some_openssl_function())&lt;br /&gt;
    /* handle error */&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Refer to the [[Library Errors]] page for more information about OpenSSL errors.&lt;br /&gt;
&lt;br /&gt;
== Thread Safety ==&lt;br /&gt;
&lt;br /&gt;
OpenSSL currently is thread-NOT-safe by default.  In order to make it thread-safe the caller has to provide various callbacks for locking, atomic integer addition, and thread ID determination (this last has reasonable defaults).  This makes it difficult to use OpenSSL from multiple distinct objects in one multi-threaded process: one of them had better provide these callbacks, but only one of them should.&lt;br /&gt;
&lt;br /&gt;
Currently the only moderately safe way for libraries using OpenSSL to handle thread safety is to do the following as early as possible, possible in .init or DllMain:&lt;br /&gt;
&lt;br /&gt;
* Check if the locking callback has been set, then set it if not;&lt;br /&gt;
* CRYPTO_w_lock(CRYPTO_LOCK_DYNLOCK), set the remaining callbacks (threadid, dynlock, and add_lock) if not already set, then CRYPTO_w_unlock(CRYPTO_LOCK_DYNLOCK);&lt;br /&gt;
&lt;br /&gt;
In the future we hope that OpenSSL will self-initialize thread-safely to use native threading where available.&lt;br /&gt;
&lt;br /&gt;
== Fork Safety ==&lt;br /&gt;
: ''main article: [[Random fork-safety]]''&lt;br /&gt;
&lt;br /&gt;
OpenSSL library functions are generally not async-signal-safe, therefore:&lt;br /&gt;
&lt;br /&gt;
* do not call OpenSSL functions from signal handlers&lt;br /&gt;
* do not call OpenSSL functions on the child-side of fork() (exec or _exit)&lt;br /&gt;
* do not call OpenSSL functions from pthread_atfork() handlers (fork() itself is and must be and remain async-signal-safe)&lt;br /&gt;
&lt;br /&gt;
If you have an application for which using OpenSSL on the parent and child sides of fork() (without exec'ing) and it does not blow up naturally, then you should arrange to call RAND_poll() on the child-side of fork() before using any other RAND functions.&lt;br /&gt;
&lt;br /&gt;
== Further libcrypto information ==&lt;br /&gt;
&lt;br /&gt;
There are a number of other pages that cover specific aspects of working with libcrypto:&lt;br /&gt;
* [[EVP|EVP High level interface for cryptographic operations]]&lt;br /&gt;
* [[Cryptographic Algorithms]]&lt;br /&gt;
* [[Random Numbers|Handling Random Numbers]]&lt;br /&gt;
* [[BIO|Working with BIOs]]&lt;br /&gt;
* [[Elliptic Curve Cryptography]]&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Libssl API]]&lt;br /&gt;
&lt;br /&gt;
[[Category:crypto API]]&lt;br /&gt;
[[Category:C level]]&lt;br /&gt;
[[Category:Examples]]&lt;/div&gt;</summary>
		<author><name>DavidCary</name></author>
	</entry>
	<entry>
		<id>https://wiki.openssl.org/index.php?title=Standard_commands&amp;diff=1472</id>
		<title>Standard commands</title>
		<link rel="alternate" type="text/html" href="https://wiki.openssl.org/index.php?title=Standard_commands&amp;diff=1472"/>
		<updated>2014-02-10T15:02:02Z</updated>

		<summary type="html">&lt;p&gt;DavidCary: link to article that goes into more detail, etc.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The OpenSSL [[standard commands]] can be listed via&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ openssl list-standard-commands&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Besides there are also [[cipher commands]] and [[message-digest commands]]. You can use these like&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ openssl command [options]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Options heavily depend on the command. Please consult the dedicated pages.&lt;br /&gt;
&lt;br /&gt;
===List of standard commands===&lt;br /&gt;
&lt;br /&gt;
*asn1parse&lt;br /&gt;
*ca&lt;br /&gt;
*ciphers - [[Command Line Utilities#ciphers]]&lt;br /&gt;
*cms&lt;br /&gt;
*crl&lt;br /&gt;
*crl2pkcs7&lt;br /&gt;
*dgst&lt;br /&gt;
*dh&lt;br /&gt;
*dhparam&lt;br /&gt;
*dsa&lt;br /&gt;
*dsaparam&lt;br /&gt;
*ec&lt;br /&gt;
*ecparam&lt;br /&gt;
*[[enc]] - encryption and decryption tasks with symmetric ciphers.&lt;br /&gt;
*engine&lt;br /&gt;
*errstr&lt;br /&gt;
*gendh&lt;br /&gt;
*gendsa - [[Command Line Utilities#Key Generation]]&lt;br /&gt;
*genpkey&lt;br /&gt;
*genrsa - [[Command Line Utilities#Key Generation]]&lt;br /&gt;
*nseq&lt;br /&gt;
*ocsp&lt;br /&gt;
*passwd&lt;br /&gt;
*pkcs12 - [[Command Line Utilities#Client Certificates AKA pkcs12]]&lt;br /&gt;
*pkcs7&lt;br /&gt;
*pkcs8&lt;br /&gt;
*pkey&lt;br /&gt;
*pkeyparam&lt;br /&gt;
*pkeyutl&lt;br /&gt;
*prime&lt;br /&gt;
*rand -- see [[Random Numbers]]&lt;br /&gt;
*req&lt;br /&gt;
*rsa&lt;br /&gt;
*rsautl&lt;br /&gt;
*s_client&lt;br /&gt;
*s_server&lt;br /&gt;
*s_time&lt;br /&gt;
*sess_id&lt;br /&gt;
*smime&lt;br /&gt;
*speed&lt;br /&gt;
*spkac&lt;br /&gt;
*srp&lt;br /&gt;
*ts&lt;br /&gt;
*verify&lt;br /&gt;
*version&lt;br /&gt;
*x509&lt;/div&gt;</summary>
		<author><name>DavidCary</name></author>
	</entry>
</feed>