Page 1 of 1

Error creating client certificate

Posted: Sat Apr 28, 2018 5:52 pm
by ItsiiDanoN
Hello everyone,i'm new here and trying to build my VPN for myself only
And when I trying to build client certificate I'm getting this error: https://prnt.sc/jbbr7f
Any tips? Please :(
*Sorry is this is off-top here

Re: Setting up the client error

Posted: Sat Apr 28, 2018 7:00 pm
by TinCanTech

Re: Setting up the client error

Posted: Sun Apr 29, 2018 10:46 am
by ItsiiDanoN
TinCanTech wrote:
Sat Apr 28, 2018 7:00 pm
Please see:
HOWTO: Request Help !
To be honest I can't understand what I need to post and where..
Why do I need send 95 configs and 75 logs when I just can't create certificate for client?

Re: Setting up the client error

Posted: Sun Apr 29, 2018 4:22 pm
by TinCanTech
You asked in the wrong place, this should be moved to easyrsa.

Looking at your screen shot, I expect you are either not running as administrator or you have just done something wrong with easyrsa.

Re: Setting up the client error

Posted: Sun Apr 29, 2018 6:00 pm
by ItsiiDanoN
TinCanTech wrote:
Sun Apr 29, 2018 4:22 pm
You asked in the wrong place, this should be moved to easyrsa.

Looking at your screen shot, I expect you are either not running as administrator or you have just done something wrong with easyrsa.
May be you can guess what I did wrong? Or may be I need send something to you?

Re: Error creating client certificate

Posted: Sun Apr 29, 2018 6:16 pm
by TinCanTech
Did you know you can copy/paste from a command window .....

Re: Error creating client certificate

Posted: Sun Apr 29, 2018 6:20 pm
by ItsiiDanoN
TinCanTech wrote:
Sun Apr 29, 2018 6:16 pm
Did you know you can copy/paste from a command window .....
https://pastebin.com/3EjfamK8
Okay,here we are,I'm trying to make a certificate for server and I getting this error
https://pastebin.com/FucWZWmy
Also this is my "vars.bat" settings
https://pastebin.com/WBqkDQir
And this is my server config if needed

Re: Error creating client certificate

Posted: Sun Apr 29, 2018 6:30 pm
by TinCanTech

Re: Error creating client certificate

Posted: Sun Apr 29, 2018 6:32 pm
by ItsiiDanoN
TinCanTech wrote:
Sun Apr 29, 2018 6:30 pm
Try using EasyRSA3:
https://github.com/OpenVPN/easy-rsa/releases
Well,done
Wrote "help" and there are too much commands.. What do I need to..?
(I'm doing this first time,don't blame me)

Re: Error creating client certificate

Posted: Sun Apr 29, 2018 7:34 pm
by ItsiiDanoN
Well,I did it,but when I trying to connect I have this error..

https://pastebin.com/TjKdbDG5
I run GUI as administrator.

Re: Error creating client certificate

Posted: Sun Apr 29, 2018 7:49 pm
by TinCanTech

Code: Select all

Options error: --server directive network/netmask combination is invalid
Use --help for more information.
Because

Code: Select all

server 192.168.0.1 255.255.255.0
is invalid.

Try using the example settings, which are correct.

Code: Select all

server 10.8.0.0 255.255.255.0
For further help:
TinCanTech wrote:
Sat Apr 28, 2018 7:00 pm
Please see:
HOWTO: Request Help !
You should Start here:
HOWTO: For OpenVPN Community Edition

Re: Error creating client certificate

Posted: Sun Apr 29, 2018 8:11 pm
by ItsiiDanoN
TinCanTech wrote:
Sun Apr 29, 2018 7:49 pm

Code: Select all

Options error: --server directive network/netmask combination is invalid
Use --help for more information.
Because

Code: Select all

server 192.168.0.1 255.255.255.0
is invalid.

Try using the example settings, which are correct.

Code: Select all

server 10.8.0.0 255.255.255.0
For further help:
TinCanTech wrote:
Sat Apr 28, 2018 7:00 pm
Please see:
HOWTO: Request Help !
You should Start here:
HOWTO: For OpenVPN Community Edition
Done,doesn't help :c
And there are too much information,really too much
I did all right as in here: https://community.openvpn.net/openvpn/w ... dows_Guide
But I stil getting this stupid error..
May be please you can help without this FAQ?
I can't understand what is my problem and what I need to find :\

Re: Error creating client certificate

Posted: Sun Apr 29, 2018 8:22 pm
by TinCanTech
ItsiiDanoN wrote:
Sun Apr 29, 2018 8:11 pm
May be please you can help without this FAQ?
If you do not read the HOWTO then I cannot help ..

Please see:
HOWTO: Request Help ! {2}

Server & client log files at --verb 4 please.

See --log & --verb in The Manual v24x

Re: Error creating client certificate

Posted: Mon Apr 30, 2018 9:53 am
by ItsiiDanoN
Log from the client: https://pastebin.com/5EE7Lx37
Log from the server: https://pastebin.com/xuNS0yfX
Client PC OS: Win. 10 pro x64
Server OS: Win server 2012 R2 Standart
Server config: https://pastebin.com/X75wqm6Y
User config: https://pastebin.com/BT584S5R
-----------
I think you have a full information now.

Re: Error creating client certificate

Posted: Mon Apr 30, 2018 12:01 pm
by TinCanTech
ItsiiDanoN wrote:
Mon Apr 30, 2018 9:53 am
Log from the server

Code: Select all

Options error: --dh fails with 'C:\Program Files\OpenVPN\config\dh1024.pem': No such file or directory (errno=2)
Options error: Please correct these errors.
Use --help for more information.
ItsiiDanoN wrote:
Mon Apr 30, 2018 9:53 am
Server config

Code: Select all

dh "C:\\Program Files\\OpenVPN\\config\\dh1024.pem"
:geek:

Re: Error creating client certificate

Posted: Mon Apr 30, 2018 2:12 pm
by ItsiiDanoN
TinCanTech wrote:
Mon Apr 30, 2018 12:01 pm
ItsiiDanoN wrote:
Mon Apr 30, 2018 9:53 am
Log from the server

Code: Select all

Options error: --dh fails with 'C:\Program Files\OpenVPN\config\dh1024.pem': No such file or directory (errno=2)
Options error: Please correct these errors.
Use --help for more information.
ItsiiDanoN wrote:
Mon Apr 30, 2018 9:53 am
Server config

Code: Select all

dh "C:\\Program Files\\OpenVPN\\config\\dh1024.pem"
:geek:
Well,new strange error,I need remove double slashes everywhere? I did it but still..
https://pastebin.com/snDzgwx7
And when I'm trying to "Edit config" from the OVPN GUI I'm getting this .-.
https://prntscr.com/jbyx28