<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0"
 xmlns:blogChannel="http://backend.userland.com/blogChannelModule"
>

<channel>
<title>Parallels knowledgebase (KB)</title>
<link>http://kb.parallels.com/</link>
<description>Parallels knowledgebase (KB)</description>
<language>en</language>
<copyright>Copyright 2008 Parallels</copyright>
<pubDate>Wed, 10 Sep 2008 00:00:00 +0600</pubDate>
<lastBuildDate>Wed, 10 Sep 2008 00:00:00 +0600</lastBuildDate>
<webMaster>rt-team@parallels.com</webMaster>

<item>
<title><![CDATA[[How to] CÃ³mo puedo instalar un certificado SSL personalizado en el servidor SSO?]]></title>
<link>http://kb.parallels.com/es/6138</link>
<description><![CDATA[<div id="article">
	<ul class="listActions">
<li><span class="actionNotyfy">Article for your preferred language does not exist. Below is international version of the article.</span></li>
</ul>





	<div id="kb" class="kb">
		<div class="article-container">
			<h2 class="title">[How to] Cómo puedo instalar un certificado SSL personalizado en el servidor SSO?</h2>
			<div class="ab-frame"><div class="bl"><div class="br"><div class="tl"><div class="tr"><!-- frame -->
				<div class="articleProperty">
					<div>Article ID: 6138&nbsp;</div>
					<div>Last Review: Jun,30 2009</div>
					<tr>
						<td>Author: </td>
						<td>Meritxell Sevilla</td>
					</tr>
					<br/>
					<tr>
						<td>Last updated by: </td>
						<td>Meritxell Sevilla</td>
					</tr>
					<strong>APPLIES TO:</strong>
					<div class="articleApplies">
						<ul>
							<li>Plesk 9.x for Linux/Unix</li>
						</ul>
					</div>
				</div><!-- articleProperty -->
			</div></div></div></div></div><!-- frame -->

			<div class="article-internal-flag"></div>

			<div id="article-content">
				<div class="article-part">
					<h2>Síntomas</h2>
					El servidor SSO est&aacute; registrado <strong>sso.server</strong><em> </em>en Parallels Plesk Panel 9 y el modo SSO est&aacute; activado. <br /><br />Puede comprobarlo con la utilidad&nbsp;<strong>sso</strong> de Parallels Plesk Panel:<br /><br /><div class="commandline"><code>~# /usr/local/psa/bin/sso --get-prefs<br />SSO on<br />sso server url: https://<strong>sso.server</strong>:11443<br />sso relay url: https://<strong>sso.server</strong>:11444<br />~#</code></div><br />En Parallels Plesk Panel hay instalado un certificado SSL&nbsp;v&aacute;lido emitido por una autoridad de certificaci&oacute;n de confianza. <br /><br />A&uacute;n as&iacute;, aparece el siguiente error en la p&aacute;gina de inicio de sesi&oacute;n a Paralels Plesk Panel:<br /><br /><em>Secure Connection Failed<br /><br />sso.server:11444 uses an invalid security certificate.<br /><br />The certificate is not trusted because it is self signed.<br /><br />(Error code: sec_error_ca_cert_invalid)<br /><br />&nbsp;&nbsp;&nbsp; * This could be a problem with the server's configuration, or it could be someone trying to impersonate the server.<br /><br />&nbsp;&nbsp;&nbsp; * If you have connected to this server successfully in the past, the error may be temporary, and you can try again later.<br /><br />Or you can add an exception&hellip;</em><br />
				</div>
				<div class="article-part">
					<h2>Causa</h2>
					Como Parallels Plesk Panel trabaja en modo SSO, la p&aacute;gina de inicio de sesi&oacute;n http://plesk.host.name:8443 es redirigida al servidor SSO&nbsp;y se abre la p&aacute;gina http://sso.server:11444. En primer lugar se carga el certificado SSL instalado en el servidor SSO&nbsp;y entonces el certificado SSL instalado en Parallels Plesk Panel. Por defecto, existe un certificado SSL&nbsp;autofirmado instalado en el servidor SSO.<br /><br />Incluso en el caso de que en Parallels Plesk Panel haya instalado un certificado SSL&nbsp;v&aacute;lido, primero se abrir&aacute; un certificado SSL&nbsp;autofirmado.<br /><br />Siga los pasos que detallamos a continuaci&oacute;n para instalar un certificado SSL&nbsp;v&aacute;lido en el servidor SSO.<br />
				</div>
				<div class="article-part">
					<h2>Resolución</h2>
					El certificado SSL usado por el servidor SSO se encuentra en el directorio <strong>/etc/sso</strong>:<br /><br /><div class="commandline"><code>~# ls -l /etc/sso<br />total 16<br />-rw------- 1 sso&nbsp; root 2198 Feb 20 13:23 sso-ca.pem<br />-rw-r--r-- 1 root root&nbsp; 774 Nov 11 14:04 sso_config.ini<br />-rw------- 1 sso&nbsp; root 2198 Feb 20 13:19 sso.pem<br />-rw------- 1 sso&nbsp; root 1155 Feb 20 13:16 sso-public.pem<br />~#</code></div><br />Antes de realizar el reemplazo, haga una copia de seguridad de los certificados SSL&nbsp;antiguos, por si acaso:<br /><br /><div class="commandline"><code>~# cp -rp /etc/sso /etc/sso.old</code></div><br />Guarde el certificado SSL&nbsp;del dominio en el archivo <strong>CRT.pem</strong>, Certificate Authority (CA) certifica a <strong>CA.pem</strong> y Private Key a <strong>KEY.pem</strong>:<br /><br /><span style='font-family: courier new,courier;font-size: 12px;'><strong>CRT.pem</strong><br />-----BEGIN CERTIFICATE-----<br />&nbsp;&nbsp; &lt;===CERTIFICATE HERE===&gt; <br />-----END CERTIFICATE-----</span><br /><br /><span style='font-family: courier new,courier;font-size: 12px;'><strong>KEY.pem</strong><br />-----BEGIN RSA PRIVATE KEY-----<br />&nbsp;&nbsp; &lt;===PRIVATE KEY HERE===&gt;<br />-----END RSA PRIVATE KEY-----</span><br /><br /><span style='font-family: courier new,courier;font-size: 12px;'><strong>CA.pem</strong><br />-----BEGIN CERTIFICATE-----<br />&nbsp;&lt;===CA CERTIFICATE HERE===&gt; <br />-----END CERTIFICATE-----</span><br /><br />Antes de instalarlo, le recomendamos verificar que la Llave Privada coincide con el certificado SSL del dominio. Esto significa que la Llave Privada fue generada con Certificate Signed Request (CSR) usado por Certificate Authority para generar el certificado SSL&nbsp;del dominio CRT.pem.<br /><br />Tenga en cuenta que si el certificado SSL&nbsp;se instal&oacute; con otra Llave Privada, entonces no ser&aacute; v&aacute;lido.<br /><br />Para obtener md5 para la Llave Privada:<br /><br /><div class="commandline"><code>~# openssl rsa -noout -modulus -in KEY.pem | openssl md5<br /><span style="color: rgb(51, 153, 102);">1ef3c35a4baabdff594f78831dc882c4</span><br />~#</code></div><br />y para el certificado SSL:<br /><br /><div class="commandline"><code>~# openssl x509 -noout -modulus -in CRT.pem | openssl md5<br /><span style="color: rgb(51, 153, 102);">1ef3c35a4baabdff594f78831dc882c4</span><br />~#</code></div><br />Si se obtiene una salida md5 similar, la Llave Privada y el certificado SSL&nbsp;coinciden.<br /><br />Para verificar que el certificado CA&nbsp;coincide con el certificado SSL del dominio:<br /><br /><div class="commandline"><code>~# openssl verify -verbose -CAfile CA.pem CRT.pem<br />CRT.pem: OK<br />~#</code></div><br />Copie el texto de <strong>CRT.pem</strong>, <strong>CA.pem</strong> y <strong>KEY.pem</strong> a los archivos del certificado:<br /><br /><span style='font-family: courier new,courier;font-size: 12px;'><strong>sso-ca.pem</strong><br />-----BEGIN RSA PRIVATE KEY-----<br />&nbsp;&nbsp; &lt;===PRIVATE KEY HERE===&gt;<br />-----END RSA PRIVATE KEY-----<br />-----BEGIN CERTIFICATE-----<br />&nbsp;&lt;===CA CERTIFICATE HERE===&gt; <br />-----END CERTIFICATE-----</span><br /><br /><span style='font-family: courier new,courier;font-size: 12px;'><strong>sso.pem</strong><br />-----BEGIN RSA PRIVATE KEY-----<br />&nbsp;&nbsp; &lt;===PRIVATE KEY HERE===&gt;<br />-----END RSA PRIVATE KEY-----<br />-----BEGIN CERTIFICATE-----<br />&nbsp;&nbsp; &lt;===CERTIFICATE HERE===&gt; <br />-----END CERTIFICATE-----</span><br /><br /><span style='font-family: courier new,courier;font-size: 12px;'><strong>sso-public.pem</strong><br />-----BEGIN CERTIFICATE-----<br />&nbsp;&nbsp; &lt;===CERTIFICATE HERE===&gt; <br />-----END CERTIFICATE-----</span><br /><br /><strong>NOTA</strong>: Algunas Autoridades de Certificaci&oacute;n no requieren un certificado CA. En este caso podr&aacute; copiar el archivo sso.pem a sso-ca.pem.<br /><br />Compruebe y corrija los permisos. Puede realizar esta acci&oacute;n con los comandos <em>chown </em>y <em>chmod</em>:<br /><br /><span style='font-family: courier new,courier;font-size: 12px;'>~# chown sso:root /etc/sso/sso*.pem<br />~# chmod 400 /etc/sso/sso*.pem</span><br /><br />Ahora reinicie sw-cp-server:<br /><br /><div class="commandline"><code>~# /etc/init.d/sw-cp-server restart<br />Restarting SWsoft control panels server... stale pidfile.&nbsp; [&nbsp; OK&nbsp; ]<br />~#</code></div><br />Con el siguiente comando puede verificar que el certificado SSL&nbsp;nuevo est&aacute; siendo usado por el servidor SSO:<br /><br /><div class="commandline"><code>~# openssl s_client -connect sso.server:11444</code></div><br />
				</div>
				<div class="article-part">
					<h2>Información Adicional</h2>
					Si desea m&aacute;s informaci&oacute;n acerca del procedimiento de generaci&oacute;n de un certificado SSL&nbsp;autofirmado para un servidor SSO, consulte el art&iacute;culo <a href="http://kb.parallels.comhttp://kb.parallels.com/es/6140">C&oacute;mo generar un certificado SSL&nbsp;autofirmado para un servidor SSO manualmente?</a>
				</div>
			</div>
		</div><!-- article-container -->


			<br/><br/>

			<div id="SubscriptionLink24Article" class="subscriptionLink2">
<a href="http://kb.parallels.com/subscriptions/index.html?Type=Article&ArticleID=6138&ArticleLanguage=es&Product=&Category="><img src="http://kb.parallels.com/images/mail.png" width="15" height="15" alt="Subscription for changes to this article"></a>
<a href="http://kb.parallels.com/subscriptions/index.html?Type=Article&ArticleID=6138&ArticleLanguage=es&Product=&Category=">Subscription for changes to this article</a>

<script type="text/javascript">

$(document).ready(function() {
	$('#SubscriptionLink24Article a').each(function(){
		$(this).click(function(event) {
			event.preventDefault();
			MainPageContentHide();
			$('#subscription').html('');
			$.get('/Stuff/Subscription', {
													'Type' : 'Article',
													'ArticleID' : '6138',
													'ArticleLanguage' : 'es',
													'Product' : '',
													'Category' : ''
												}, function(data) {
																	$('#subscription').html(data);
																	$('#subscription').show();
																	SUBbuildsubmenus_product();
																});
		});
	});
});

</script>

</div>





	</div><!-- kb -->

</div><!-- article -->


]]></description>
<author>Meritxell Sevilla</author>
<guid isPermaLink="false">10263 LastUpdated: 2009-06-30 11:11:05</guid>
<pubDate>2009-06-30 10:56:40</pubDate>
</item>
</channel>
</rss>



