{"id":996,"date":"2019-02-08T02:46:29","date_gmt":"2019-02-08T02:46:29","guid":{"rendered":"http:\/\/angga.feb.uns.ac.id\/?p=996"},"modified":"2022-03-15T05:56:54","modified_gmt":"2022-03-15T05:56:54","slug":"lets-encrypt-di-sentora","status":"publish","type":"post","link":"https:\/\/angga.feb.uns.ac.id\/?p=996","title":{"rendered":"Let&#8217;s Encrypt di Sentora"},"content":{"rendered":"<p>Langkah Langkah mendapatkan certifikat SSL dari Let&#8217;s Encrypt<\/p>\n<p>apt-get install git<br \/>\ngit clone https:\/\/github.com\/letsencrypt\/letsencrypt \/opt\/letsencrypt<br \/>\ncd \/opt\/letsencrypt\/<br \/>\nservice apache2 stop<br \/>\n.\/letsencrypt-auto certonly &#8211;standalone <a href=\"https:\/\/findcrack.net\/call-recorder-acr\/\">&#8211;<\/a>d contoh.com<br \/>\nservice apache2 start<\/p>\n<p>Changing Sentora port:<br \/>\nOn Sentora Panel go to Admin -&gt; Module Admin -&gt; Apache Config &gt; Override a Virtualhost [Select VHost] -&gt;<br \/>\nTick Port Override.<br \/>\nForward Port 80 to Overriden Port: 443<br \/>\nCustom Entry:<br \/>\n(Don&#8217;t forget to replace domain.com with your domain&#8217;s URL below:)<br \/>\nSSLEngine on<br \/>\nSSLProtocol ALL -SSLv2 -SSLv3<br \/>\nSSLHonorCipherOrder On<br \/>\nSSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS<br \/>\nSSLCertificateFile \/etc\/letsencrypt\/live\/domain.com\/cert.pem<br \/>\nSSLCertificateKeyFile \/etc\/letsencrypt\/live\/domain.com\/privkey.pem<br \/>\nSSLCertificateChainFile \/etc\/letsencrypt\/live\/domain.com\/chain.pem<br \/>\n# Keeping bellow for future upgrades.<br \/>\n# Requires Apache &gt;= 2.4<br \/>\nSSLCompression off<br \/>\nSave Vhost.<\/p>\n<p>curl -L -o \/usr\/local\/sbin\/le-renew http:\/\/do.co\/le-renew<br \/>\nchmod +x \/usr\/local\/sbin\/le-renew<br \/>\nle-renew contoh.com<br \/>\nnano \/etc\/crontab<br \/>\n0 4 * * 1 \/usr\/local\/sbin\/le-renew contoh.com &gt;&gt; \/var\/log\/le-renew.log<br \/>\nphp -q \/etc\/sentora\/panel\/bin\/daemon.php<br \/>\nservice httpd restart<\/p>\n<p>kalo ada masalah ketika mau cari letsencrip seeprti ini<\/p>\n<p>Installing Python packages&#8230;<br \/>\n\/opt\/eff.org\/certbot\/venv\/bin\/python: No module named pip.__main__; &#8216;pip&#8217; is a p ackage and cannot be directly executed<br \/>\nTraceback (most recent call last):<br \/>\nFile &#8220;\/tmp\/tmp.d0gXaMVLJb\/pipstrap.py&#8221;, line 177, in &lt;module&gt;<br \/>\nsys.exit(main())<br \/>\nFile &#8220;\/tmp\/tmp.d0gXaMVLJb\/pipstrap.py&#8221;, line 149, in main<br \/>\npip_version = StrictVersion(check_output([python, &#8216;-m&#8217;, &#8216;pip&#8217;, &#8216;&#8211;version&#8217;])<br \/>\nFile &#8220;\/usr\/lib\/python2.7\/subprocess.py&#8221;, line 544, in check_output<br \/>\nraise CalledProcessError(retcode, cmd, output=output)<br \/>\nsubprocess.CalledProcessError: Command &#8216;[&#8216;\/opt\/eff.org\/certbot\/venv\/bin\/python&#8217;, &#8216;-m&#8217;, &#8216;pip&#8217;, &#8216;&#8211;version&#8217;]&#8217; returned non-zero exit status 1<\/p>\n<p>caranya mudah tinggal edit di letsencrypt-auto<\/p>\n<p>cd\u00a0\/opt\/letsencrypt<\/p>\n<p>nano\u00a0letsencrypt-auto<\/p>\n<p>ganti seperti dibawah ini<\/p>\n<p><code>pip_version = StrictVersion(check_output([python, '-m', 'pip', '--version'])<\/code><br \/>\ndengan<br \/>\n<code>pip_version = StrictVersion(check_output(['pip', '--version'])<\/code><\/p>\n<p>and<br \/>\n<code>command = [python, '-m', 'pip', 'install', '--no-index', '--no-deps', '-U']<\/code><br \/>\ndengan<br \/>\n<code>command = ['pip', 'install', '--no-index', '--no-deps', '-U']<\/code><\/p>\n<p>kemudian jalankan<\/p>\n<p>.\/letsencrypt-auto certonly &#8211;no-self-upgrade &#8212; standalone -d\u00a0contoh.com<\/p>\n<p>ingat ketika menjalankan letsencrypt apache service dimatikan dulu biar berhasil<\/p>\n<p>kalo diatas masih belum bisa bisa menggunakan langkah ini<\/p>\n<p>1.rm .\/certbot-<span class=\"hljs-keyword\">auto<\/span>*<\/p>\n<p>wget https:<span class=\"hljs-comment\">\/\/raw.githubusercontent.com\/certbot\/certbot\/75499277be6699fd5a9b884837546391950a3ec9\/certbot-auto<\/span><\/p>\n<p>2.ganti seperti dibawah ini<\/p>\n<p><code>pip_version = StrictVersion(check_output([python, '-m', 'pip', '--version'])<\/code><br \/>\ndengan<br \/>\n<code>pip_version = StrictVersion(check_output(['pip', '--version'])<\/code><\/p>\n<p>and<br \/>\n<code>command = [python, '-m', 'pip', 'install', '--no-index', '--no-deps', '-U']<\/code><br \/>\ndengan<br \/>\n<code>command = ['pip', 'install', '--no-index', '--no-deps', '-U']<\/code><\/p>\n<p>3. kemudian jalankan ini<\/p>\n<p>chmod +x .\/certbot-<span class=\"hljs-keyword\">auto<\/span> .\/certbot-<span class=\"hljs-keyword\">auto<\/span> &#8211;no-self-upgrade<\/p>\n<p>terimakasih semoga bermanfaat<\/p>\n<p>sumber\u00a0https:\/\/community.letsencrypt.org\/t\/pip-error-with-certbot-auto\/88200\/5<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Langkah Langkah mendapatkan certifikat SSL dari Let&#8217;s Encrypt apt-get install git git clone https:\/\/github.com\/letsencrypt\/letsencrypt \/opt\/letsencrypt cd \/opt\/letsencrypt\/ service apache2 stop .\/letsencrypt-auto certonly &#8211;standalone &#8211;d contoh.com service apache2 start Changing Sentora port: On Sentora Panel go to Admin -&gt; Module Admin -&gt; Apache Config &gt; Override a Virtualhost [Select VHost] -&gt; Tick Port Override. Forward Port [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-996","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/angga.feb.uns.ac.id\/index.php?rest_route=\/wp\/v2\/posts\/996","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/angga.feb.uns.ac.id\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/angga.feb.uns.ac.id\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/angga.feb.uns.ac.id\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/angga.feb.uns.ac.id\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=996"}],"version-history":[{"count":4,"href":"https:\/\/angga.feb.uns.ac.id\/index.php?rest_route=\/wp\/v2\/posts\/996\/revisions"}],"predecessor-version":[{"id":8347,"href":"https:\/\/angga.feb.uns.ac.id\/index.php?rest_route=\/wp\/v2\/posts\/996\/revisions\/8347"}],"wp:attachment":[{"href":"https:\/\/angga.feb.uns.ac.id\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=996"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/angga.feb.uns.ac.id\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=996"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/angga.feb.uns.ac.id\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=996"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}