Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ssh 无法连接,因为您的证书无效。检查您的系统时间是否正确_Ssh_Centos_Openvpn - Fatal编程技术网

Ssh 无法连接,因为您的证书无效。检查您的系统时间是否正确

Ssh 无法连接,因为您的证书无效。检查您的系统时间是否正确,ssh,centos,openvpn,Ssh,Centos,Openvpn,我不知道我做错了什么。我的时间是正确的,我甚至从微软更新了它 客户端配置: tls-client client dev tun proto udp remote xx.xxx.xxx.xxx 80 resolv-retry infinite nobind tun-mtu 1500 tun-mtu-extra 32 mssfix 1450 persist-key persist-tun comp-lzo verb 3 reneg-sec 0 route-method exe route-delay

我不知道我做错了什么。我的时间是正确的,我甚至从微软更新了它

客户端配置:

tls-client
client
dev tun
proto udp
remote xx.xxx.xxx.xxx 80
resolv-retry infinite
nobind
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
persist-key
persist-tun
comp-lzo
verb 3
reneg-sec 0
route-method exe
route-delay 2
ca ca.crt
auth-user-pass
服务器配置:

local xx.xxx.xxx.xxx
port 80
proto udp
dev tun
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
ca /etc/openvpn/easy-rsa/2.0/keys/ca.crt
cert /etc/openvpn/easy-rsa/2.0/keys/server.crt
key /etc/openvpn/easy-rsa/2.0/keys/server.key
dh /etc/openvpn/easy-rsa/2.0/keys/dh1024.pem
plugin /usr/share/openvpn/plugin/lib/openvpn-auth-pam.so /etc/pam.d/login
client-cert-not-required
username-as-common-name
server 10.8.0.0 255.255.0.0
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
comp-lzo
persist-key
persist-tun
#status /etc/openvpn/logs/serverstatus-tcp.log
#log /etc/openvpn/logs/serverlog-tcp.log 
verb 3
float
duplicate-cn
#Limit server to a maximum of n concurrent clients.
max-clients 15
keepalive 20 300

我也有这个问题。。。检查并在必要时更新客户端和服务器上的日期/时间。在我的例子中,创建证书时服务器时钟不正确。只需更正服务器上的时钟日期和时间,然后删除旧证书并重新颁发所有证书

我也有这个问题。。。检查并在必要时更新客户端和服务器上的日期/时间。在我的例子中,创建证书时服务器时钟不正确。只需更正服务器上的时钟日期和时间,然后删除旧证书并重新颁发所有证书

客户端和服务器上的时钟设置是否正确?客户端和服务器上的时钟设置是否正确?