Underc0de

Foros Generales => Dudas y pedidos generales => Mensaje iniciado por: lookings en Agosto 07, 2019, 06:35:33 AM

Título: problemas openvpn
Publicado por: lookings en Agosto 07, 2019, 06:35:33 AM
Cuando intento conectarme desde un cliente windows a openvpn en una ubuntu server 16 me sale el siguiente error:
Wed Aug 07 11:23:16 2019 OpenVPN 2.4.7 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Apr 25 2019
Wed Aug 07 11:23:16 2019 Windows version 6.1 (Windows 7) 64bit
Wed Aug 07 11:23:16 2019 library versions: OpenSSL 1.1.0j  20 Nov 2018, LZO 2.10
Enter Management Password:
Wed Aug 07 11:23:16 2019 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25340
Wed Aug 07 11:23:16 2019 Need hold release from management interface, waiting...
Wed Aug 07 11:23:17 2019 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25340
Wed Aug 07 11:23:17 2019 MANAGEMENT: CMD 'state on'
Wed Aug 07 11:23:17 2019 MANAGEMENT: CMD 'log all on'
Wed Aug 07 11:23:17 2019 MANAGEMENT: CMD 'echo all on'
Wed Aug 07 11:23:17 2019 MANAGEMENT: CMD 'bytecount 5'
Wed Aug 07 11:23:17 2019 MANAGEMENT: CMD 'hold off'
Wed Aug 07 11:23:17 2019 MANAGEMENT: CMD 'hold release'
Wed Aug 07 11:23:17 2019 MANAGEMENT: Client disconnected
Wed Aug 07 11:23:17 2019 Insufficient key material or header text not found in file 'client1.key' (0/128/256 bytes found/min/max)
Wed Aug 07 11:23:17 2019 Exiting due to fatal error

¿Alguna idea o ayuda?, entiendo que la llave no esta bien pero es la generada por el server.
Título: Re:problemas openvpn
Publicado por: xyz en Agosto 13, 2019, 03:25:00 PM
Hola @lookings (https://underc0de.org/foro/index.php?action=profile;u=90228).

El error es:
Wed Aug 07 11:23:17 2019 Insufficient key material or header text not found in file 'client1.key' (0/128/256 bytes found/min/max)

Deberías verificar en el servidor:
- La ruta donde están guardados los archivos .crt y .key
Y en el cliente de windows:
- Archivos .crt .key en rutas correctas
- Archivo de configuración .ovpn correcto.

Sería interesante, que brindes más información sobre todo, la configuración que utilizas.

Un material muy util para una correcta configuración:
digitalocean.com/community/tutorials/como-configurar-un-servidor-openvpn-en-ubuntu-16-04-es

Un saludo .!