Error creating client certificate

Support forum for Easy-RSA certificate management suite.
Post Reply
ItsiiDanoN
OpenVpn Newbie
Posts: 9
Joined: Sat Apr 28, 2018 5:43 pm

Error creating client certificate

Post by ItsiiDanoN » Sat Apr 28, 2018 5:52 pm

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

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 4804
Joined: Fri Jun 03, 2016 1:17 pm

Re: Setting up the client error

Post by TinCanTech » Sat Apr 28, 2018 7:00 pm


ItsiiDanoN
OpenVpn Newbie
Posts: 9
Joined: Sat Apr 28, 2018 5:43 pm

Re: Setting up the client error

Post by ItsiiDanoN » Sun Apr 29, 2018 10:46 am

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?

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 4804
Joined: Fri Jun 03, 2016 1:17 pm

Re: Setting up the client error

Post by TinCanTech » 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.

ItsiiDanoN
OpenVpn Newbie
Posts: 9
Joined: Sat Apr 28, 2018 5:43 pm

Re: Setting up the client error

Post by ItsiiDanoN » Sun Apr 29, 2018 6:00 pm

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?

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 4804
Joined: Fri Jun 03, 2016 1:17 pm

Re: Error creating client certificate

Post by TinCanTech » Sun Apr 29, 2018 6:16 pm

Did you know you can copy/paste from a command window .....

ItsiiDanoN
OpenVpn Newbie
Posts: 9
Joined: Sat Apr 28, 2018 5:43 pm

Re: Error creating client certificate

Post by ItsiiDanoN » Sun Apr 29, 2018 6:20 pm

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

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 4804
Joined: Fri Jun 03, 2016 1:17 pm

Re: Error creating client certificate

Post by TinCanTech » Sun Apr 29, 2018 6:30 pm


ItsiiDanoN
OpenVpn Newbie
Posts: 9
Joined: Sat Apr 28, 2018 5:43 pm

Re: Error creating client certificate

Post by ItsiiDanoN » Sun Apr 29, 2018 6:32 pm

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)

ItsiiDanoN
OpenVpn Newbie
Posts: 9
Joined: Sat Apr 28, 2018 5:43 pm

Re: Error creating client certificate

Post by ItsiiDanoN » Sun Apr 29, 2018 7:34 pm

Well,I did it,but when I trying to connect I have this error..

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

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 4804
Joined: Fri Jun 03, 2016 1:17 pm

Re: Error creating client certificate

Post by TinCanTech » 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

ItsiiDanoN
OpenVpn Newbie
Posts: 9
Joined: Sat Apr 28, 2018 5:43 pm

Re: Error creating client certificate

Post by ItsiiDanoN » Sun Apr 29, 2018 8:11 pm

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 :\

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 4804
Joined: Fri Jun 03, 2016 1:17 pm

Re: Error creating client certificate

Post by TinCanTech » Sun Apr 29, 2018 8:22 pm

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

ItsiiDanoN
OpenVpn Newbie
Posts: 9
Joined: Sat Apr 28, 2018 5:43 pm

Re: Error creating client certificate

Post by ItsiiDanoN » Mon Apr 30, 2018 9:53 am

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.

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 4804
Joined: Fri Jun 03, 2016 1:17 pm

Re: Error creating client certificate

Post by TinCanTech » 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:

ItsiiDanoN
OpenVpn Newbie
Posts: 9
Joined: Sat Apr 28, 2018 5:43 pm

Re: Error creating client certificate

Post by ItsiiDanoN » Mon Apr 30, 2018 2:12 pm

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

Post Reply