{"id":10,"date":"2026-03-26T09:42:57","date_gmt":"2026-03-26T09:42:57","guid":{"rendered":"https:\/\/weworknetwork.net\/?p=10"},"modified":"2026-04-08T05:44:14","modified_gmt":"2026-04-08T05:44:14","slug":"%e0%b9%83%e0%b8%8a%e0%b9%89-letencryp-ssl-%e0%b8%aa%e0%b8%b3%e0%b8%ab%e0%b8%a3%e0%b8%b1%e0%b8%9a-mikrotik","status":"publish","type":"post","link":"https:\/\/weworknetwork.net\/?p=10","title":{"rendered":"\u0e43\u0e0a\u0e49 LetEncryp SSL \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a Mikrotik"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\"><\/h1>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1 \u2014 \u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 Certbot<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install certbot python3-certbot-nginx -y<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2 \u2014 \u0e02\u0e2d SSL Certificate<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo certbot certonly --nginx -d vpn.ntddns.com<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3 \u2014 Export \u0e40\u0e1b\u0e47\u0e19\u0e44\u0e1f\u0e25\u0e4c .p12 \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a Mikrotik<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo openssl pkcs12 -export \\\n  -in \/etc\/letsencrypt\/live\/vpn.ntddns.com\/fullchain.pem \\\n  -inkey \/etc\/letsencrypt\/live\/vpn.ntddns.com\/privkey.pem \\\n  -out \/root\/vpn-ntddns.p12 \\\n  -name \"vpn.ntddns.com\" \\\n  -passout pass:<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4 \u2014 Copy \u0e44\u0e1f\u0e25\u0e4c\u0e44\u0e1b\u0e44\u0e27\u0e49\u0e17\u0e35\u0e48 Web \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e14\u0e32\u0e27\u0e19\u0e4c\u0e42\u0e2b\u0e25\u0e14<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo cp \/root\/vpn-ntddns.p12 \/var\/www\/html\/vpn-ntddns.p12<\/code><\/pre>\n\n\n\n<p>\u0e40\u0e1b\u0e34\u0e14\u0e40\u0e1a\u0e23\u0e32\u0e27\u0e4c\u0e40\u0e0b\u0e2d\u0e23\u0e4c\u0e41\u0e25\u0e49\u0e27\u0e14\u0e32\u0e27\u0e19\u0e4c\u0e42\u0e2b\u0e25\u0e14:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>http:&#47;&#47;vpn.ntddns.com\/vpn-ntddns.p12<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Step 5 \u2014 \u0e25\u0e1a\u0e44\u0e1f\u0e25\u0e4c\u0e2d\u0e2d\u0e01\u0e08\u0e32\u0e01 Web \u0e17\u0e31\u0e19\u0e17\u0e35<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo rm \/var\/www\/html\/vpn-ntddns.p12<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Step 6 \u2014 Upload \u0e44\u0e1f\u0e25\u0e4c\u0e40\u0e02\u0e49\u0e32 Mikrotik<\/h2>\n\n\n\n<p>\u0e2d\u0e31\u0e1b\u0e42\u0e2b\u0e25\u0e14\u0e44\u0e1f\u0e25\u0e4c <code>vpn-ntddns.p12<\/code> \u0e40\u0e02\u0e49\u0e32 Mikrotik \u0e1c\u0e48\u0e32\u0e19 <strong>Winbox \u2192 Files<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Step 7 \u2014 Import Certificate \u0e43\u0e19 Mikrotik<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>\/certificate import file-name=vpn-ntddns.p12 passphrase=\"\"<\/code><\/pre>\n\n\n\n<p>\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e27\u0e48\u0e32 Import \u0e2a\u0e33\u0e40\u0e23\u0e47\u0e08:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/certificate print<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Step 8 \u2014 \u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32 SSTP Server \u0e43\u0e19 Mikrotik<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>\/interface sstp-server server set certificate=vpn.ntddns.com enabled=yes<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Step 9 \u2014 \u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32 Auto Renewal Hook<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano \/etc\/letsencrypt\/renewal-hooks\/deploy\/export-mikrotik.sh<\/code><\/pre>\n\n\n\n<p>\u0e27\u0e32\u0e07\u0e02\u0e49\u0e2d\u0e04\u0e27\u0e32\u0e21\u0e19\u0e35\u0e49:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/bin\/bash\nopenssl pkcs12 -export \\\n  -in \/etc\/letsencrypt\/live\/vpn.ntddns.com\/fullchain.pem \\\n  -inkey \/etc\/letsencrypt\/live\/vpn.ntddns.com\/privkey.pem \\\n  -out \/root\/vpn-ntddns.p12 \\\n  -name \"vpn.ntddns.com\" \\\n  -passout pass:<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo chmod +x \/etc\/letsencrypt\/renewal-hooks\/deploy\/export-mikrotik.sh<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Step 10 \u2014 \u0e17\u0e14\u0e2a\u0e2d\u0e1a Auto Renewal<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo certbot renew --dry-run<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u2705 <strong>\u0e40\u0e2a\u0e23\u0e47\u0e08\u0e2a\u0e34\u0e49\u0e19!<\/strong> \u0e15\u0e2d\u0e19\u0e19\u0e35\u0e49 Mikrotik SSTP VPN \u0e43\u0e0a\u0e49 Let&#8217;s Encrypt SSL Certificate \u0e41\u0e25\u0e49\u0e27 \u0e41\u0e25\u0e30\u0e08\u0e30 Renew \u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34\u0e17\u0e38\u0e01 90 \u0e27\u0e31\u0e19<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Step 1 \u2014 \u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 Certbot Step 2 \u2014 \u0e02\u0e2d SSL Certificate Step 3 \u2014 Export \u0e40\u0e1b\u0e47\u0e19\u0e44\u0e1f\u0e25\u0e4c .p12 \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a Mikrotik Step&hellip;<\/p>\n","protected":false},"author":1,"featured_media":58,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-10","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-networking"],"_links":{"self":[{"href":"https:\/\/weworknetwork.net\/index.php?rest_route=\/wp\/v2\/posts\/10","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/weworknetwork.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/weworknetwork.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/weworknetwork.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/weworknetwork.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10"}],"version-history":[{"count":1,"href":"https:\/\/weworknetwork.net\/index.php?rest_route=\/wp\/v2\/posts\/10\/revisions"}],"predecessor-version":[{"id":11,"href":"https:\/\/weworknetwork.net\/index.php?rest_route=\/wp\/v2\/posts\/10\/revisions\/11"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/weworknetwork.net\/index.php?rest_route=\/wp\/v2\/media\/58"}],"wp:attachment":[{"href":"https:\/\/weworknetwork.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/weworknetwork.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/weworknetwork.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}