Pass Phrase being asked on server at startup

Scripts to manage certificates or generate config files

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
outInTheOpen
OpenVpn Newbie
Posts: 7
Joined: Wed Jan 08, 2014 2:07 pm

Pass Phrase being asked on server at startup

Post by outInTheOpen » Wed Jan 08, 2014 2:17 pm

I have installed OpenVPN and gone through, what I believe to be, all the steps. It doesn't work yet, one problem seems to be that on server startup, before the root login prompt, OpenVPN asks for the Pass Phrase used for my client certificate. Is this normal? Second problem is that my pass phrase doesn't work. Any help resolving either of these 2 issues would be greatly appreciated.

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: Pass Phrase being asked on server at startup

Post by maikcat » Thu Jan 09, 2014 7:59 am

you obviously protected the .key file with a password...

if you want your openvpn service to start automatically try to use a key without password protection.

Michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

outInTheOpen
OpenVpn Newbie
Posts: 7
Joined: Wed Jan 08, 2014 2:07 pm

Re: Pass Phrase being asked on server at startup

Post by outInTheOpen » Thu Jan 09, 2014 9:17 am

Thanks Michael,
I created the client key file with the command:
./build-key-pass UserName
and the first field prompt to appear is the pass phrase
I am obliged to enter the pass phrase to continue.

Is this where I am going wrong? Where can I configure openvpn so not to request a pass phrase for the client key?

outInTheOpen
OpenVpn Newbie
Posts: 7
Joined: Wed Jan 08, 2014 2:07 pm

Re: Pass Phrase being asked on server at startup

Post by outInTheOpen » Thu Jan 09, 2014 9:21 am

to clarify the requirement:
I want to enter a password when I connect to OpenVPN from the client. But I do not want the server to prompt me for a password on startup.

outInTheOpen
OpenVpn Newbie
Posts: 7
Joined: Wed Jan 08, 2014 2:07 pm

Re: Pass Phrase being asked on server at startup

Post by outInTheOpen » Fri Jan 10, 2014 11:38 am

I did as you suggested, I recreated the server key and executed the command to remove the need for client verification.
But the Private Key Password is being requested for the client.conf file, not the server.conf.
No password was entered during the creation of server.conf. Since nothing worked, I then re-created the client.conf without a password (build-key) but still it asks for a password.

Post Reply