Odp: OpenVPN w trybie TUN - generowanie *.ovpn
Generowałem przez to:
# cd /etc/easy-rsa/
# easyrsa gen-dh
# easyrsa build-ca nopass
# easyrsa build-server-full serwer nopass
# easyrsa build-client-full malgosia nopass
Wcześniej w pliku vars ustawiłem swoje dane.
Pamiętam jedynie ze gen-dh zrobił sie w ułamek sekundy. Spróbuje raz jeszcze wszystko od nowa wygenerować
edit:
No i niestety.. wciąz to samo... ani z telefonu ani z windowsa...
Wszystkie klucze zrobiłem na nowo, po wrzuceniu serwerowych kluczy zrobilem reboot,
Sat Sep 15 21:05:02 2018 VERIFY ERROR: depth=1, error=self signed certificate in certificate chain: CN=pz_home_server
Sat Sep 15 21:05:02 2018 OpenSSL: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
Sat Sep 15 21:05:02 2018 TLS_ERROR: BIO read tls_read_plaintext error
Sat Sep 15 21:05:02 2018 TLS Error: TLS object -> incoming plaintext read error
Sat Sep 15 21:05:02 2018 TLS Error: TLS handshake failed
Sat Sep 15 21:06:32 2018 TLS Error: Unroutable control packet received from [AF_INET]89.71.XXX.XXX:1194 (si=3 op=P_ACK_V1)
Sat Sep 15 21:06:34 2018 TLS Error: Unroutable control packet received from [AF_INET]89.71.XXX.XXX:1194 (si=3 op=P_ACK_V1)
Sat Sep 15 21:06:36 2018 TLS Error: Unroutable control packet received from [AF_INET]89.71.XXX.XXX:1194 (si=3 op=P_CONTROL_V1)
Sat Sep 15 21:06:38 2018 TLS Error: Unroutable control packet received from [AF_INET]89.71.XXX.XXX:1194 (si=3 op=P_ACK_V1)
Sat Sep 15 21:06:46 2018 TLS Error: Unroutable control packet received from [AF_INET]89.71.XXX.XXX:1194 (si=3 op=P_ACK_V1)
Sat Sep 15 21:06:47 2018 TLS Error: Unroutable control packet received from [AF_INET]89.71.XXX.XXX:1194 (si=3 op=P_CONTROL_V1)
Sat Sep 15 21:06:53 2018 TLS Error: Unroutable control packet received from [AF_INET]89.71.XXX.XXX:1194 (si=3 op=P_CONTROL_V1)
Sat Sep 15 21:07:03 2018 TLS Error: Unroutable control packet received from [AF_INET]89.71.XXX.XXX:1194 (si=3 op=P_ACK_V1)
Sat Sep 15 21:07:32 2018 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Sat Sep 15 21:07:32 2018 TLS Error: TLS handshake failed
root@VigoradoNetwork:/etc/easy-rsa# iptables -v -L
3 182 ACCEPT udp -- any any anywhere anywhere udp dpt:openvpn /* !fw3: OpenVPN */
root@VigoradoNetwork:/etc/easy-rsa# easyrsa build-ca nopass
Generating a 2048 bit RSA private key
.......................+++++
...+++++
writing new private key to '/etc/easy-rsa/pki/private/ca.key.XXXXcjghDm'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Common Name (eg: your user, host, or server name) [Easy-RSA CA]:pz_home_server
CA creation complete and you may now import and sign cert requests.
Your new CA certificate file for publishing is at:
/etc/easy-rsa/pki/ca.crt
root@VigoradoNetwork:/etc/easy-rsa# easyrsa build-server-full serwer nopass
Generating a 2048 bit RSA private key
....+++++
..........................+++++
writing new private key to '/etc/easy-rsa/pki/private/serwer.key.XXXXBlLCAH'
-----
Using configuration from /etc/easy-rsa/openssl-1.0.cnf
Check that the request matches the signature
Signature ok
The Subject's Distinguished Name is as follows
commonName :ASN.1 12:'serwer'
Certificate is to be certified until Sep 12 18:50:52 2028 GMT (3650 days)
Write out database with 1 new entries
Data Base Updated
root@VigoradoNetwork:/etc/easy-rsa# easyrsa build-client-full piotr_samsung nopass
Generating a 2048 bit RSA private key
.................................+++++
...................................+++++
writing new private key to '/etc/easy-rsa/pki/private/piotr_samsung.key.XXXXKlpIBc'
-----
Using configuration from /etc/easy-rsa/openssl-1.0.cnf
Check that the request matches the signature
Signature ok
The Subject's Distinguished Name is as follows
commonName :ASN.1 12:'piotr_samsung'
Certificate is to be certified until Sep 12 18:51:06 2028 GMT (3650 days)
Write out database with 1 new entries
Data Base Updated