{"id":149,"date":"2016-02-16T22:34:38","date_gmt":"2016-02-17T06:34:38","guid":{"rendered":"http:\/\/www.asrivas.me\/blog\/?p=149"},"modified":"2016-02-16T22:34:38","modified_gmt":"2016-02-17T06:34:38","slug":"openvpn-using-self-signed-instead-of-commercial-certificates","status":"publish","type":"post","link":"https:\/\/www.asrivas.me\/blog\/openvpn-using-self-signed-instead-of-commercial-certificates\/","title":{"rendered":"OpenVPN: Using self signed instead of commercial certificates"},"content":{"rendered":"<p>When my commercial SSL certificate for OpenVPNAS from StartCom expired, I decided to switch back to using self-signed certificates for the same. This is fairly easy to do if you have root access to the appliance.<\/p>\n<p>Just change directories to:<br \/>\n# cd \/usr\/local\/openvpn_as\/etc\/web-ssl<\/p>\n<p>and then execute this command for a 10 year certificate:<br \/>\n# openssl req -x509 -newkey rsa:2048 -keyout server.key -out server.crt -days 3650 -nodes<\/p>\n<p>You will now need to restart the appliance (either by using sacli or just by restarting the appliance). Lastly, manually add the certificate to the browser to get rid of the security warning every time you logon.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When my commercial SSL certificate for OpenVPNAS from StartCom expired, I decided to switch back to using self-signed certificates for the same. This is fairly easy to do if you have root access to the appliance. Just change directories to: # cd \/usr\/local\/openvpn_as\/etc\/web-ssl and then execute this command for a 10 year certificate: # openssl &#8230; <span class=\"more\"><a class=\"more-link\" href=\"https:\/\/www.asrivas.me\/blog\/openvpn-using-self-signed-instead-of-commercial-certificates\/\">[Read more&#8230;]<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.asrivas.me\/blog\/wp-json\/wp\/v2\/posts\/149"}],"collection":[{"href":"https:\/\/www.asrivas.me\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.asrivas.me\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.asrivas.me\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.asrivas.me\/blog\/wp-json\/wp\/v2\/comments?post=149"}],"version-history":[{"count":2,"href":"https:\/\/www.asrivas.me\/blog\/wp-json\/wp\/v2\/posts\/149\/revisions"}],"predecessor-version":[{"id":167,"href":"https:\/\/www.asrivas.me\/blog\/wp-json\/wp\/v2\/posts\/149\/revisions\/167"}],"wp:attachment":[{"href":"https:\/\/www.asrivas.me\/blog\/wp-json\/wp\/v2\/media?parent=149"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.asrivas.me\/blog\/wp-json\/wp\/v2\/categories?post=149"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.asrivas.me\/blog\/wp-json\/wp\/v2\/tags?post=149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}