sh OpenVPN访问服务器Letsencrypt

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh OpenVPN访问服务器Letsencrypt相关的知识,希望对你有一定的参考价值。

rsa-key-size = 2048

email = server@server.com

domains = vpn.server.com

authenticator = standalone
standalone-supported-challenges = tls-sni-01

agree-tos = True

keep-until-expiring = True
#!/bin/sh
# https://www.sideras.net/lets-encrypt-https-certificates-for-openvpn-as-access-server/

DOMAIN="vpn.server.com"

set -eu

/etc/init.d/openvpnas stop

/opt/letsencrypt/letsencrypt-auto certonly -c /etc/letsencrypt/vpn.server.com.ini

/usr/local/openvpn_as/scripts/confdba -mk cs.ca_bundle -v "`cat /etc/letsencrypt/live/$DOMAIN/fullchain.pem`"

/usr/local/openvpn_as/scripts/confdba -mk cs.priv_key -v "`cat /etc/letsencrypt/live/$DOMAIN/privkey.pem`" > /dev/null

/usr/local/openvpn_as/scripts/confdba -mk cs.cert -v "`cat /etc/letsencrypt/live/$DOMAIN/cert.pem`"

/etc/init.d/openvpnas start
#!/bin/sh

apt-get -y install git bc
git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt
mkdir /etc/letsencrypt

以上是关于sh OpenVPN访问服务器Letsencrypt的主要内容,如果未能解决你的问题,请参考以下文章

sh OpenVPN服务器的简单IPtables脚本

sh 获取openvpn服务的统计信息。

sh openvpn-install.sh

sh openvpn-ipv6-learn.sh

sh vps__openvpn_install.sh

sh 打印OpenVPN连接的状态。