<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Форум PHP-MyAdmin.RU &mdash; Как правильно настроит Appache чтоб он принимал любой Сертификат]]></title>
	<link rel="self" href="https://forum.php-myadmin.ru/extern.php?action=feed&amp;tid=1132&amp;type=atom" />
	<updated>2009-03-15T05:25:17Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.php-myadmin.ru/viewtopic.php?id=1132</id>
		<entry>
			<title type="html"><![CDATA[Re: Как правильно настроит Appache чтоб он принимал любой Сертификат]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=7476#p7476" />
			<content type="html"><![CDATA[<p>I am trying to get user certificate by $_SERVER[’SSL_CLIENT_CERT’] and send it to another web server for authentication. <br />So far I changed httpd-ssl.conf to accept any user certificate <br />&lt;VirtualHost _default_:443&gt; <br />SSLEngine on <br />ServerSignature On <br />SSLCipherSuite ALL:!ADH:!EXPORT56:!EXPORT40:RC4+RSA:!SSLv2:+HIGH:+MEDIUM:+LOW:+EXP:+eNULL <br />SSLOptions +StdEnvVars +ExportCertData <br />SSLVerifyClient optional_no_ca <br />SSLCertificateFile conf/ssl.crt/server.crt <br />SSLCertificateKeyFile conf/ssl.key/server.key <br />SSLCACertificatePath conf/ <br />&lt;/VirtualHost&gt; </p><p>My clients internet explore shows all the availbale certificates when they access my https://localhost/ server. They choose one and submit it to https://localhost/testldap.php. <br />Where scripts are <br />&lt;?php <br />$ssl=openssl_x509_parse($_SERVER[’SSL_CLIENT_CERT’]); <br />print_r($ssl); <br />?&gt; </p><p>But here $_SERVER[’SSL_CLIENT_CERT’] and other $_SERVER[’SSL_SERVER_CERT’] parameters are empty. I don;t know why. Please help me to solve it!!!<br />My original task is to develop login page by using public key infrastructure. But the server which issues the client&#039;s private key is not my organization. <br />And I am only allowed to connect their web server by sending the user&#039;s client certificate (who logged in my web site) and getting the information about my user&#039;s certificate</p>]]></content>
			<author>
				<name><![CDATA[Navishok]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=1848</uri>
			</author>
			<updated>2009-03-15T05:25:17Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=7476#p7476</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как правильно настроит Appache чтоб он принимал любой Сертификат]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=7455#p7455" />
			<content type="html"><![CDATA[<p><strong>Navishok</strong><br />К сожалению, я не в состоянии здесь чем-то помочь. Надеюсь найдутся люди, чтобы подсказать решение.</p>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2009-03-12T12:48:53Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=7455#p7455</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Как правильно настроит Appache чтоб он принимал любой Сертификат]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=7450#p7450" />
			<content type="html"><![CDATA[<p>Я хочу настроит Apache чтоб он принимал все пользовательские сертификаты независимо от происхождение, правильности. То есть моя задача просто получит сертификат $_SERVER[’SSL_CLIENT_CERT’] виде напримере так<br />-----BEGIN CERTIFICATE----- <br />MIID8DCCAtigAwIBAgIBAjANBgkqhkiG9w0BAQUFADCBhjELMAkGA1UEBhMCREUx DDAKBg<br />NVBAgTA05SVzETMBEGA1UEBxMKTGFuZ2VuYmVyZzETMBEGA1UEChMKRmls <br />[lots of stuff omitted]<br />gzsp6IP+dagFEuv0pN30UUInNT1FriGwFyctZvBKu+Ybb/QJLJV74lLW8d7d8CNX ikFwug==<br />-----END CERTIFICATE----- <br />и передат его на проверку другому серверу. Но пока первая задача просто получит сертифика и и это у меня не получается.</p><p>пока я изменил httpd-ssl.conf <br />&lt;VirtualHost _default_:443&gt;<br />SSLEngine on <br />ServerSignature On<br />SSLCipherSuite ALL:!ADH:!EXPORT56:!EXPORT40:RC4+RSA:!SSLv2:+HIGH:+MEDIUM:+LOW:+EXP:+eNULL<br />SSLOptions +StdEnvVars +ExportCertData <br />SSLVerifyClient optional_no_ca<br />SSLCertificateFile conf/ssl.crt/server.crt<br />SSLCertificateKeyFile conf/ssl.key/server.key<br />SSLCACertificatePath conf/<br />&lt;/VirtualHost&gt;</p><p>Теперь у меня отображается в INternet Explore все существующие браузерские сертификаты. Выбираю один и отправляю на этот скрипт https://localhost/testldap.php<br />где скрипт <br />&lt;?php <br />$ssl=openssl_x509_parse($_SERVER[’SSL_CLIENT_CERT’]);<br />print_r($ssl); <br />?&gt;</p><p>Но к сожалению $_SERVER[’SSL_CLIENT_CERT’] или другие параметры $_SERVER[’SSL_SERVER_CERT’] пустые. Народ подскажите плиз как это можно решить</p>]]></content>
			<author>
				<name><![CDATA[Navishok]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=1848</uri>
			</author>
			<updated>2009-03-12T04:39:02Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=7450#p7450</id>
		</entry>
</feed>
