<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://studioware.com/wikislax/index.php?action=history&amp;feed=atom&amp;title=OpenSSL</id>
		<title>OpenSSL - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://studioware.com/wikislax/index.php?action=history&amp;feed=atom&amp;title=OpenSSL"/>
		<link rel="alternate" type="text/html" href="http://studioware.com/wikislax/index.php?title=OpenSSL&amp;action=history"/>
		<updated>2026-05-29T22:19:06Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.29.2</generator>

	<entry>
		<id>http://studioware.com/wikislax/index.php?title=OpenSSL&amp;diff=107&amp;oldid=prev</id>
		<title>Wikislax: /* Using Certificates */</title>
		<link rel="alternate" type="text/html" href="http://studioware.com/wikislax/index.php?title=OpenSSL&amp;diff=107&amp;oldid=prev"/>
				<updated>2025-01-09T19:24:04Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Using Certificates&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 19:24, 9 January 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l95&quot; &gt;Line 95:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 95:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; dir 		= /etc/ssl		# Where everything is kept&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; dir 		= /etc/ssl		# Where everything is kept&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; certificate	= $&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;dir/&lt;/del&gt;certs/cacert.pem	# The CA certificate&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; certificate	= $certs/cacert.pem	# The CA certificate&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;big&amp;gt;&amp;lt;u&amp;gt;To create a self-signed certification authority certificate :&amp;lt;/u&amp;gt;&amp;lt;/big&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;big&amp;gt;&amp;lt;u&amp;gt;To create a self-signed certification authority certificate :&amp;lt;/u&amp;gt;&amp;lt;/big&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Wikislax</name></author>	</entry>

	<entry>
		<id>http://studioware.com/wikislax/index.php?title=OpenSSL&amp;diff=72&amp;oldid=prev</id>
		<title>Wikislax at 20:46, 4 November 2020</title>
		<link rel="alternate" type="text/html" href="http://studioware.com/wikislax/index.php?title=OpenSSL&amp;diff=72&amp;oldid=prev"/>
				<updated>2020-11-04T20:46:26Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 20:46, 4 November 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l241&quot; &gt;Line 241:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 241:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; :$&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; :$&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; :r ../private/mtakey.pem.unsecure&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; :r ../private/mtakey.pem.unsecure&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; :w server.pem&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; :w&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;! &lt;/ins&gt;server.pem&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; :x&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; :x&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; # '''chown cyrus:mail server.pem'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; # '''chown cyrus:mail server.pem'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Wikislax</name></author>	</entry>

	<entry>
		<id>http://studioware.com/wikislax/index.php?title=OpenSSL&amp;diff=23&amp;oldid=prev</id>
		<title>Wikislax: Created page with &quot;{{RightTOC}}  == What is OpenSSL ? ==  [http://www.openssl.org/ OpenSSL] is an OpenSource implementation of the TLS and SSL protocols. It is used as a base for securitizing th...&quot;</title>
		<link rel="alternate" type="text/html" href="http://studioware.com/wikislax/index.php?title=OpenSSL&amp;diff=23&amp;oldid=prev"/>
				<updated>2017-12-06T21:28:31Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{RightTOC}}  == What is OpenSSL ? ==  [http://www.openssl.org/ OpenSSL] is an OpenSource implementation of the TLS and SSL protocols. It is used as a base for securitizing th...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{RightTOC}}&lt;br /&gt;
&lt;br /&gt;
== What is OpenSSL ? ==&lt;br /&gt;
&lt;br /&gt;
[http://www.openssl.org/ OpenSSL] is an OpenSource implementation of the TLS and SSL protocols. It is used as a base for securitizing the communications (authenticating, cyphering, signing) of the rest of the OpenSource server software. However, following a record of security issues, the security and quality of the software appears more uncertain. In 2013, WikiLeaks published documents obtained by Edward Snowden, which revealed that since 2010, the NSA had effectively broken/bypassed SSL/TLS by possibly exploiting vulnerabilities such as HeartBleed.&lt;br /&gt;
&lt;br /&gt;
Since OpenSSL 1.0.1g, members of the [http://http://www.openbsd.org/ OpenBSD] project forked OpenSSL to create a project named [http://www.libressl.org/ LibreSSL] that can be used as a plugin replacement for OpenSSL.&lt;br /&gt;
&lt;br /&gt;
To make things a bit less worrying, OpenSSL is part of the base Slackware distribution and so benefits from the [http://www.slackware.com/security/ Slackware security advisories]. The official documentation can be found on the official http site [http://www.openssl.org openssl.org] but is somewhat cryptic. '''man openssl''' is a better option.&lt;br /&gt;
&lt;br /&gt;
From an historic point of view, the SSL suite of protocols was created by Netscape to securitize communications made over TCP/IP. SSL affords encrypting the data and authenticating the parties on the wire using various methods and algorithms. SSL was the base layer to ensure confidentiality of essential TCP protocols such as '''smtp http pop3 nntp imap ldap'''. SSL encapsulates these services (and others…) using alternate protocol names and port numbers. '''BUT''' the SSL protocols were superseded by [https://en.wikipedia.org/wiki/Transport_Layer_Security TLS] and are now deprecated due to security weaknesses. SSL should not be used any longer. Instead, use TLS. Current version is TLS v1.2.&lt;br /&gt;
&lt;br /&gt;
{| {{thead}}&lt;br /&gt;
|-&lt;br /&gt;
! {{chead}} | Protocol&lt;br /&gt;
! {{chead}} | Port #&lt;br /&gt;
! {{chead}} | Secure Protocol&lt;br /&gt;
! {{chead}} | Secure Port #&lt;br /&gt;
! {{chead}} | Service&lt;br /&gt;
|-&lt;br /&gt;
|SMTP||25||SMTPS||465||Mail exchange&lt;br /&gt;
|-&lt;br /&gt;
|HTTP||80||HTTPS||443||Web browsing&lt;br /&gt;
|-&lt;br /&gt;
|POP3||110||POP3S||995||Mail retrieval&lt;br /&gt;
|-&lt;br /&gt;
|NTTP||119||NTTPS||563||News exchange&lt;br /&gt;
|-&lt;br /&gt;
|IMAP||143||IMAPS||993||Mail retrieval&lt;br /&gt;
|-&lt;br /&gt;
|LDAP||389||LDAPS||636||Ldap Directory&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Use only TLS ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Please note&amp;lt;/u&amp;gt; : the SSL protocols were superseded by [https://en.wikipedia.org/wiki/Transport_Layer_Security TLS] and are now deprecated due to security weaknesses. SSL should not be used any longer. Instead, use TLS. Current version is v1.2&lt;br /&gt;
&lt;br /&gt;
== Compiling OpenSSL ==&lt;br /&gt;
&lt;br /&gt;
OpenSSL is part of the base Slackware distribution and so benefits from the [http://www.slackware.com/security/ Slackware security advisories], which makes it very easy to upgrade to the most secure version at any time. If for some reason you'd nevertheless like to compile it from source, here's how to do it :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=red&amp;gt;Beware : to avoid breaking other software in the distribution, openssl-x.y.z can be replaced only by a minor fix update. Be sure to check the current version number using '''ls /usr/lib/*ssl*''' first.&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Installing OpenSSL is otherwise quite straigthforward :&lt;br /&gt;
&lt;br /&gt;
 # tar -C /usr/local -xvf openssl-x.y.z.tar.gz&lt;br /&gt;
 # cd /usr/local&lt;br /&gt;
 # chown -R root openssl-x.y.z&lt;br /&gt;
 # chgrp -R root openssl-x.y.z&lt;br /&gt;
 # cd openssl-x.y.z&lt;br /&gt;
 # vi README&lt;br /&gt;
 # vi INSTALL&lt;br /&gt;
 # make clean&lt;br /&gt;
 # ./config --prefix=/usr/local --openssldir=/etc/ssl shared&lt;br /&gt;
 # make&lt;br /&gt;
 # make test&lt;br /&gt;
 # cd /var/log/packages&lt;br /&gt;
 # removepkg openssl-x.y.z-X86_64-2&lt;br /&gt;
 # removepkg openssl-solibs-x.y.z-X86_64-2&lt;br /&gt;
 # cd /usr/local/openssl-x.y.z&lt;br /&gt;
 # make install&lt;br /&gt;
 # make clean&lt;br /&gt;
 # cd ../lib&lt;br /&gt;
 # mv libssl* ../lib64&lt;br /&gt;
 # mv libcrypto* ../lib64&lt;br /&gt;
 # cd pkgconfig&lt;br /&gt;
 # mv *ssl.pc ../../lib64/pkgconfig&lt;br /&gt;
 # mv *crypto.pc ../../lib64/pkgconfig&lt;br /&gt;
 # cd /usr/lib64&lt;br /&gt;
 # ln -sf /usr/local/lib64/libssl.so.1.0.0 libssl.so.1&lt;br /&gt;
 # ln -sf /usr/local/lib64/libcrypto.so.1.0.0 libcrypto.so.1&lt;br /&gt;
 # ldconfig&lt;br /&gt;
 # cd /etc/ssl&lt;br /&gt;
 # cp -r man /usr/local&lt;br /&gt;
 # rm -r man&lt;br /&gt;
 # reboot&lt;br /&gt;
&lt;br /&gt;
'''reboot''' affords making sure that nothing was missed by the install and that the system is able to boot normally. If anything went wrong be ready to manually fix your system, for example by reinstalling the default Slackware OpenSSL package using '''installpkg'''.&lt;br /&gt;
&lt;br /&gt;
== Using OpenSSL ==&lt;br /&gt;
&lt;br /&gt;
Except for managing certificates (see the next paragraph) OpenSSL is not used directly but thru libraries to encapsulate other protocols such as '''smtp http pop3 nntp imap ldap'''.&lt;br /&gt;
&lt;br /&gt;
== Using Certificates ==&lt;br /&gt;
&lt;br /&gt;
Using a server certificate will afford remote '''smtp http pop3 nntp imap ldap''' clients to make sure that they are connected to the right site. The server certificate contains the full domain name and other information, signed by a Certificate Authority.&lt;br /&gt;
&lt;br /&gt;
To effect the real checking the clients need to get copies of the server and Certificate Authority certificates. The server certificate comes as part of the TLS protocol. The Certificate Authority certificate however must be present on the client.&lt;br /&gt;
&lt;br /&gt;
This is the case for most commercial Certificate Authority certificates, that are preinstalled. Being your own Certificate Authority will save the cost of purchasing a server certificate and renewing it yearly, but it will be necessary to install the Certificate Authority certificate on every client using your services.&lt;br /&gt;
&lt;br /&gt;
The home of the '''OpenSSL''' configuration is '''/etc/ssl'''. It initially include directories '''certs misc private''' to store the certificates, and a configuration file '''openssl.cnf''', that must be edited first. You might want to change dir and certificate to these values :&lt;br /&gt;
&lt;br /&gt;
 dir 		= /etc/ssl		# Where everything is kept&lt;br /&gt;
 certificate	= $dir/certs/cacert.pem	# The CA certificate&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;u&amp;gt;To create a self-signed certification authority certificate :&amp;lt;/u&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=red&amp;gt;Beware : for the certification to work, it is not possible to create a certification authority certificate and a server certificate with the same DN (X500 Directory Name).&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 # '''cd /etc/ssl'''&lt;br /&gt;
 # '''openssl req -new -x509 -days 3650 -keyout private/cakey.pem -out certs/cacert.pem -config openssl.cnf'''&lt;br /&gt;
 &lt;br /&gt;
 Generating a 1024 bit RSA private key&lt;br /&gt;
 .........++++++&lt;br /&gt;
 .............++++++&lt;br /&gt;
 writing new private key to 'private/cakey.pem'&lt;br /&gt;
 Enter PEM pass phrase:&lt;br /&gt;
 Verifying - Enter PEM pass phrase:&lt;br /&gt;
 -----&lt;br /&gt;
 You are about to be asked to enter information that will be incorporated&lt;br /&gt;
 into your certificate request.&lt;br /&gt;
 What you are about to enter is what is called a Distinguished Name or a DN.&lt;br /&gt;
 There are quite a few fields but you can leave some blank&lt;br /&gt;
 For some fields there will be a default value,&lt;br /&gt;
 If you enter '.', the field will be left blank.&lt;br /&gt;
 -----&lt;br /&gt;
 Country Name (2 letter code) [AU]:'''FR'''&lt;br /&gt;
 State or Province Name (full name) [Some-State]:'''.'''&lt;br /&gt;
 Locality Name (eg, city) []:'''Rennes'''&lt;br /&gt;
 Organization Name (eg, company) [Internet Widgits Pty Ltd]:'''Studioware'''&lt;br /&gt;
 Organizational Unit Name (eg, section) []:'''CA'''&lt;br /&gt;
 Common Name (eg, YOUR name) []:'''Studioware.com'''&lt;br /&gt;
 Email Address []:'''nospam@studioware.com'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;u&amp;gt;To create a server certificate request :&amp;lt;/u&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=red&amp;gt; Beware : for a server certificate, the common name must be the fully qualified domain name. A reverse DNS entry should also exist.&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 # '''cd /etc/ssl'''&lt;br /&gt;
 # '''mkdir newcerts'''&lt;br /&gt;
 # '''openssl req -new -keyout newcerts/mtakey.pem -out newcerts/mtareq.pem -days 365 -config openssl.cnf'''&lt;br /&gt;
 &lt;br /&gt;
 Generating a 1024 bit RSA private key&lt;br /&gt;
 ................................++++++&lt;br /&gt;
 ..................++++++&lt;br /&gt;
 writing new private key to 'newkey.pem'&lt;br /&gt;
 Enter PEM pass phrase:&lt;br /&gt;
 Verifying - Enter PEM pass phrase:&lt;br /&gt;
 -----&lt;br /&gt;
 You are about to be asked to enter information that will be incorporated&lt;br /&gt;
 into your certificate request.&lt;br /&gt;
 What you are about to enter is what is called a Distinguished Name or a DN.&lt;br /&gt;
 There are quite a few fields but you can leave some blank&lt;br /&gt;
 For some fields there will be a default value,&lt;br /&gt;
 If you enter '.', the field will be left blank.&lt;br /&gt;
 -----&lt;br /&gt;
 Country Name (2 letter code) [AU]:'''FR'''&lt;br /&gt;
 State or Province Name (full name) [Some-State]:'''.'''&lt;br /&gt;
 Locality Name (eg, city) []:'''Rennes'''&lt;br /&gt;
 Organization Name (eg, company) [Internet Widgits Pty Ltd]:'''Studioware'''&lt;br /&gt;
 Organizational Unit Name (eg, section) []:'''MTA'''&lt;br /&gt;
 Common Name (eg, YOUR name) []:'''inner.studioware.com'''&lt;br /&gt;
 Email Address []:'''nospam@studioware.com'''&lt;br /&gt;
 &lt;br /&gt;
 Please enter the following 'extra' attributes&lt;br /&gt;
 to be sent with your certificate request&lt;br /&gt;
 A challenge password []:&lt;br /&gt;
 An optional company name []:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;u&amp;gt;To sign the server certificate request :&amp;lt;/u&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 # '''cd /etc/ssl'''&lt;br /&gt;
 # '''cat &amp;lt;/dev/null &amp;gt;index.txt'''&lt;br /&gt;
 # '''cat &amp;gt;serial'''&lt;br /&gt;
 '''01'''&lt;br /&gt;
 '''&amp;lt;ctrl&amp;gt;d'''&lt;br /&gt;
 # '''cat newcerts/mtareq.pem newcerts/mtakey.pem &amp;gt; newcerts/mta.pem'''&lt;br /&gt;
 # '''openssl ca -policy policy_anything -out newcerts/mtacert.pem -config openssl.cnf -infiles newcerts/mta.pem'''&lt;br /&gt;
 Using configuration from openssl.cnf&lt;br /&gt;
 Enter pass phrase for /etc/ssl/private/cakey.pem:&lt;br /&gt;
 Check that the request matches the signature&lt;br /&gt;
 Signature ok&lt;br /&gt;
 Certificate Details:&lt;br /&gt;
        Serial Number: 1 (0x1)&lt;br /&gt;
        Validity&lt;br /&gt;
            Not Before: Jan  2 13:40:43 2007 GMT&lt;br /&gt;
            Not After : Jan  2 13:40:43 2008 GMT&lt;br /&gt;
        Subject:&lt;br /&gt;
            countryName               = FR&lt;br /&gt;
            localityName              = Rennes&lt;br /&gt;
            organizationName          = Studioware&lt;br /&gt;
            organizationalUnitName    = MTA&lt;br /&gt;
            commonName                = Jean-Pierre Menicucci&lt;br /&gt;
            emailAddress              = nospam@studioware.com&lt;br /&gt;
        X509v3 extensions:&lt;br /&gt;
            X509v3 Basic Constraints:&lt;br /&gt;
                CA:FALSE&lt;br /&gt;
            Netscape Comment:&lt;br /&gt;
                OpenSSL Generated Certificate&lt;br /&gt;
            X509v3 Subject Key Identifier:&lt;br /&gt;
                06:08:16:E7:C0:A3:D3:9A:D1:92:4A:6F:B8:6E:E8:28:47:79:BD:12&lt;br /&gt;
            X509v3 Authority Key Identifier:&lt;br /&gt;
                keyid:92:59:DF:C2:26:D6:54:46:46:A8:10:4E:56:CB:09:A2:E9:B4:86:93&lt;br /&gt;
 &lt;br /&gt;
 Certificate is to be certified until Jan  2 13:40:43 2008 GMT (365 days)&lt;br /&gt;
 Sign the certificate? [y/n]:'''y'''&lt;br /&gt;
 &lt;br /&gt;
 1 out of 1 certificate requests certified, commit? [y/n]'''y'''&lt;br /&gt;
 Write out database with 1 new entries&lt;br /&gt;
 Data Base Updated&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;u&amp;gt;To remove the pass phrase from the server private key :&amp;lt;/u&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=red&amp;gt;Beware : it is necessary to remove this pass phrase so that sendmail could start without any human intervention.&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 # '''openssl rsa -in newcerts/mtakey.pem -out newcerts/mtakey.pem.unsecure'''&lt;br /&gt;
 Enter pass phrase for newcerts/mtakey.pem:&lt;br /&gt;
 writing RSA key&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;u&amp;gt;To move the files to the right directories with the right rights and clean up :&amp;lt;/u&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 # '''cd newcerts'''&lt;br /&gt;
 # '''ls'''&lt;br /&gt;
 01.pem  mta.pem  mtacert.pem  mtakey.pem  mtakey.pem.unsecure  mtareq.pem&lt;br /&gt;
 # '''mv mtacert.pem ../certs'''&lt;br /&gt;
 # '''mv mtakey* ../private'''&lt;br /&gt;
 # '''rm 01.pem mta.pem mtareq.pem'''&lt;br /&gt;
 # '''cd ../certs'''&lt;br /&gt;
 # '''chmod go+r *'''&lt;br /&gt;
 # '''cd ../private'''&lt;br /&gt;
 # '''chmod go-r *'''&lt;br /&gt;
&lt;br /&gt;
When renewing an existing certificate mtakey.pem, the following commands afford making the required copies :&lt;br /&gt;
&lt;br /&gt;
 # '''cp mtakey.pem.unsecure apache.mtakey.pem.unsecure'''&lt;br /&gt;
 # '''cp mtakey.pem.unsecure asterisk.mtakey.pem.unsecure'''&lt;br /&gt;
 # '''cp mtakey.pem.unsecure ldap.mtakey.pem.unsecure'''&lt;br /&gt;
 # '''cp mtakey.pem.unsecure news.mtakey.pem.unsecure'''&lt;br /&gt;
 # '''cp mtakey.pem.unsecure smmsp.mtakey.pem.unsecure'''&lt;br /&gt;
 # '''chown apache:apache apache.mtakey.pem.unsecure'''&lt;br /&gt;
 # '''chown asterisk:asterisk asterisk.mtakey.pem.unsecure'''&lt;br /&gt;
 # '''chown ldap:ldap ldap.mtakey.pem.unsecure'''&lt;br /&gt;
 # '''chown smmsp:smmsp smmsp.mtakey.pem.unsecure'''&lt;br /&gt;
 # '''chown news:news news.mtakey.pem.unsecure'''&lt;br /&gt;
 # '''cd ../certs'''&lt;br /&gt;
 # '''vi mtacert.pem'''&lt;br /&gt;
 d59d&lt;br /&gt;
 :$&lt;br /&gt;
 :r ../private/mtakey.pem.unsecure&lt;br /&gt;
 :w server.pem&lt;br /&gt;
 :x&lt;br /&gt;
 # '''chown cyrus:mail server.pem'''&lt;br /&gt;
 # '''chmod 600 server.pem'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;u&amp;gt;To check an external certificate&amp;lt;/u&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For OpenSSL to use an external certification authority certificate, you need to place in your '''/etc/ssl/certs''' directory a copy of it and a symbolic link to this copy. The name of this link must be based on the certificate hash code (see http://www.sendmail.org/~ca/email/starttls.html). This can be done in this way :&lt;br /&gt;
&lt;br /&gt;
 # C=CertificateFileName&lt;br /&gt;
 # ln -s $C `openssl x509 -noout -hash &amp;lt; $C`.0&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{pFoot|[[Creating VMs]]|[[Main Page]]|[[OpenLDAP]]|}}&lt;/div&gt;</summary>
		<author><name>Wikislax</name></author>	</entry>

	</feed>