<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title>Mikrotik.moscow [тема: Сделано. OpenVPN с require-client-certificate = yes]</title>
		<link>http://mikrotik.moscow</link>
		<description>Новое в теме Сделано. OpenVPN с require-client-certificate = yes форума RouterOS на сайте Mikrotik.moscow [mikrotik.moscow]</description>
		<language>ru</language>
		<docs>http://backend.userland.com/rss2</docs>
		<pubDate>Wed, 05 Aug 2026 05:23:19 -0400</pubDate>
		<item>
			<title>Сделано. OpenVPN с require-client-certificate = yes</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/61797-sdelano.-openvpn-s-require_client_certificate-_-yes/message236645">Сделано. OpenVPN с require-client-certificate = yes</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Привет всем! Я следовал вики-инструкциям для VPN (используя easy-rsa) и столкнулся с той же проблемой… Есть какие-нибудь решения? Спасибо. <br />
			<i>15.03.2020 19:41:00, el_berto.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/61797-sdelano.-openvpn-s-require_client_certificate-_-yes/message236645</link>
			<guid>http://mikrotik.moscow/forum/forum57/61797-sdelano.-openvpn-s-require_client_certificate-_-yes/message236645</guid>
			<pubDate>Sun, 15 Mar 2020 19:41:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Сделано. OpenVPN с require-client-certificate = yes</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/61797-sdelano.-openvpn-s-require_client_certificate-_-yes/message236644">Сделано. OpenVPN с require-client-certificate = yes</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Вчера вечером все заработало, но я не в восторге от ovpn в MT. Там так много функций не поддерживаются и не задокументированы. Вот как я сгенерировал сертификаты:<br /><br />```<br />ServerSide<br />root@voyage:~/ca# openssl req -new -x509 -newkey rsa:4096 -keyout CAkey.pem -out CA.crt -days 3650<br />Generating a 4096 bit RSA private key<br />.........................................................................................................................................................................................................++<br />.......................................++<br />writing new private key to 'CAkey.pem'<br />Enter PEM pass phrase:<br />Verifying - Enter PEM pass phrase:<br />-----<br />You are about to be asked to enter information that will be incorporated<br />into your certificate request.<br />What you are about to enter is what is called a Distinguished Name or a DN.<br />There are quite a few fields but you can leave some blank<br />For some fields there will be a default value,<br />If you enter '.', the field will be left blank.<br />-----<br />Country Name (2 letter code) [AU]:DE<br />State or Province Name (full name) [Some-State]:Bayern<br />Locality Name (eg, city) []:teststadt<br />Organization Name (eg, company) [Internet Widgits Pty Ltd]:test<br />Organizational Unit Name (eg, section) []:test<br />Common Name (eg, YOUR name) []:Test<br />Email Address []:test@test.de<br />root@voyage:~/ca#<br />```<br /><br />```<br />root@voyage:~/ca# openssl genrsa -out serverkey.pem -aes128 4096 -days 3650<br />Generating RSA private key, 4096 bit long modulus<br />.......................................................++<br />.........................................................................................................................................................................++<br />e is 65537 (0x10001)<br />Enter pass phrase for serverkey.pem:<br />Verifying - Enter pass phrase for serverkey.pem:<br />root@voyage:~/ca#<br />```<br /><br />```<br />root@voyage:~/ca# openssl rsa -in serverkey.pem -out serverkeyohnepass.pem<br />Enter pass phrase for serverkey.pem:<br />writing RSA key<br />root@voyage:~/ca#<br />```<br /><br />```<br />root@voyage:~/ca# openssl req -new -key serverkey.pem -out serverreq.pem -nodes<br />Enter pass phrase for serverkey.pem:<br />You are about to be asked to enter information that will be incorporated<br />into your certificate request.<br />What you are about to enter is what is called a Distinguished Name or a DN.<br />There are quite a few fields but you can leave some blank<br />For some fields there will be a default value,<br />If you enter '.', the field will be left blank.<br />-----<br />Country Name (2 letter code) [DE]:<br />State or Province Name (full name) [Some-State]:Bayern<br />Locality Name (eg, city) []:teststadt<br />Organization Name (eg, company) [Internet Widgits Pty Ltd]:test<br />Organizational Unit Name (eg, section) []:test<br />Common Name (eg, YOUR name) []:Test<br />Email Address []:test@test.de<br /><br />Please enter the following 'extra' attributes<br />to be sent with your certificate request<br />A challenge password []:12345678<br />An optional company name []:test<br />root@voyage:~/ca#<br />```<br /><br />```<br />root@voyage:~/ca# echo 01 &gt; serial<br />root@voyage:~/ca# touch index.txt<br />root@voyage:~/ca# openssl ca -in serverreq.pem -notext -out servercert.crt<br />Using configuration from /usr/lib/ssl/openssl.cnf<br />Enter pass phrase for ./CAkey.pem:<br />Check that the request matches the signature<br />Signature ok<br />Certificate Details:<br /> &nbsp; &nbsp; &nbsp; &nbsp;Serial Number: 1 (0x1)<br /> &nbsp; &nbsp; &nbsp; &nbsp;Validity<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Not Before: Jan &nbsp;4 19:14:43 2014 GMT<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Not After : Jan &nbsp;2 19:14:43 2024 GMT<br /> &nbsp; &nbsp; &nbsp; &nbsp;Subject:<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;countryName &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = DE<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;stateOrProvinceName &nbsp; &nbsp; &nbsp; = Bayern<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;organizationName &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= test<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;organizationalUnitName &nbsp; &nbsp;= test<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;commonName &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= Test<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;emailAddress &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= test@test.de<br /> &nbsp; &nbsp; &nbsp; &nbsp;X509v3 extensions:<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;X509v3 Basic Constraints:<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CA:FALSE<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Netscape Comment:<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OpenSSL Generated Certificate<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;X509v3 Subject Key Identifier:<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;60:3D:74:48:76:0E:72:0F:D9:DC:D7:F8:62:29:B0:18:AF:18:0B:F9<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;X509v3 Authority Key Identifier:<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;keyid:C4:04:D3:57:37:CD:E3:37:11:68:6B:CC:AC:46:27:72:60:BA:A6:EC<br /><br />Certificate is to be certified until Jan &nbsp;2 19:14:43 2024 GMT (3650 days)<br />Sign the certificate? [y/n]:y<br /><br /><br />1 out of 1 certificate requests certified, commit? [y/n]y<br />Write out database with 1 new entries<br />Data Base Updated<br />root@voyage:~/ca# Clientside<br />root@voyage:~/ca# openssl genrsa -out clientkey.pem 4096<br />Generating RSA private key, 4096 bit long modulus<br />.............++<br />............................................................................................++<br />e is 65537 (0x10001)<br />root@voyage:~/ca#<br />```<br /><br />```<br />root@voyage:~/ca# openssl req -new -key clientkey.pem -out clientreq.pem -nodes<br />You are about to be asked to enter information that will be incorporated<br />into your certificate request.<br />What you are about to enter is what is called a Distinguished Name or a DN.<br />There are quite a few fields but you can leave some blank<br />For some fields there will be a default value,<br />If you enter '.', the field will be left blank.<br />-----<br />Country Name (2 letter code) [DE]:DE<br />State or Province Name (full name) [Some-State]:Bayern<br />Locality Name (eg, city) []:teststadt<br />Organization Name (eg, company) [Internet Widgits Pty Ltd]:test<br />Organizational Unit Name (eg, section) []:test<br />Common Name (eg, YOUR name) []:TestClient<br />Email Address []:test@test.de<br /><br />Please enter the following 'extra' attributes<br />to be sent with your certificate request<br />A challenge password []:12345678<br />An optional company name []:test<br />root@voyage:~/ca#<br />```<br /><br />```<br />root@voyage:~/ca# openssl ca -in clientreq.pem -notext -out clientcert.crt<br />Using configuration from /usr/lib/ssl/openssl.cnf<br />Enter pass phrase for ./CAkey.pem:<br />Check that the request matches the signature<br />Signature ok<br />Certificate Details:<br /> &nbsp; &nbsp; &nbsp; &nbsp;Serial Number: 4 (0x2)<br /> &nbsp; &nbsp; &nbsp; &nbsp;Validity<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Not Before: Jan &nbsp;4 19:31:05 2014 GMT<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Not After : Jan &nbsp;2 19:31:05 2024 GMT<br /> &nbsp; &nbsp; &nbsp; &nbsp;Subject:<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;countryName &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = DE<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;stateOrProvinceName &nbsp; &nbsp; &nbsp; = Bayern<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;organizationName &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= test<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;organizationalUnitName &nbsp; &nbsp;= test<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;commonName &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TestClient<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;emailAddress &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= test@test.de<br /> &nbsp; &nbsp; &nbsp; &nbsp;X509v3 extensions:<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;X509v3 Basic Constraints:<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CA:FALSE<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Netscape Comment:<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OpenSSL Generated Certificate<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;X509v3 Subject Key Identifier:<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DC:D1:0C:1D:C1:EE:EE:B7:25:6A:FB:5A:09:A0:AD:0E:3F:E5:36:22<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;X509v3 Authority Key Identifier:<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;keyid:C4:04:D3:57:37:CD:E3:37:11:68:6B:CC:AC:46:27:72:60:BA:A6:EC<br /><br />Certificate is to be certified until Jan &nbsp;2 19:31:05 2024 GMT (3650 days)<br />Sign the certificate? [y/n]:y<br /><br /><br />1 out of 1 certificate requests certified, commit? [y/n]y<br />Write out database with 1 new entries<br />Data Base Updated<br />root@voyage:~/ca#<br />```<br /><br />Я сгенерировал сертификаты, но не в восторге от ovpn в MT. Там так много функций не поддерживаются и не задокументированы. <br />
			<i>05.01.2014 09:37:00, drdotti.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/61797-sdelano.-openvpn-s-require_client_certificate-_-yes/message236644</link>
			<guid>http://mikrotik.moscow/forum/forum57/61797-sdelano.-openvpn-s-require_client_certificate-_-yes/message236644</guid>
			<pubDate>Sun, 05 Jan 2014 09:37:00 -0500</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Сделано. OpenVPN с require-client-certificate = yes</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/61797-sdelano.-openvpn-s-require_client_certificate-_-yes/message236643">Сделано. OpenVPN с require-client-certificate = yes</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Какая у тебя конфигурация? Ты выбрал правильный сертификат в своей openvpn-конфигурации? Какой алгоритм/размер ключа/хэш ты используешь для своих сертификатов? <br />
			<i>05.01.2014 03:26:00, patrickmkt.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/61797-sdelano.-openvpn-s-require_client_certificate-_-yes/message236643</link>
			<guid>http://mikrotik.moscow/forum/forum57/61797-sdelano.-openvpn-s-require_client_certificate-_-yes/message236643</guid>
			<pubDate>Sun, 05 Jan 2014 03:26:00 -0500</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Сделано. OpenVPN с require-client-certificate = yes</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/61797-sdelano.-openvpn-s-require_client_certificate-_-yes/message236642">Сделано. OpenVPN с require-client-certificate = yes</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Привет, работает ли OpenVPN с require-client-certificate=yes? OpenVPN с require-client-certificate=no у меня работает. Но с “yes” всегда получаю ошибку “TLS handshake failed”. Использую MT V6.7 на сервере и клиенте. Я импортировал ServerCert & ServerKey & CAcert на сервер MT (у меня флаг KT на сервере и T на CAcert). Также импортировал ClientCert & ClientKey на клиент MT (у меня флаг KT). Если я пытаюсь изменить имя сертификата, WinBox пишет “Certificat subject is read only”. Но после изменения поля E-Mail и применения я также могу изменить имя.<br /><br />С уважением,<br />Клаус <br />
			<i>04.01.2014 18:50:00, drdotti.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/61797-sdelano.-openvpn-s-require_client_certificate-_-yes/message236642</link>
			<guid>http://mikrotik.moscow/forum/forum57/61797-sdelano.-openvpn-s-require_client_certificate-_-yes/message236642</guid>
			<pubDate>Sat, 04 Jan 2014 18:50:00 -0500</pubDate>
			<category>RouterOS</category>
		</item>
	</channel>
</rss>
