Koozali.org: home of the SME Server

OpenVPN on Koozali 10 - "Password entry required"

Offline joost

  • 19
  • +0/-0
OpenVPN on Koozali 10 - "Password entry required"
« on: November 09, 2023, 10:42:20 PM »
Hi,

I installed openvpn-bridge.

What am I doing wrong if I keep getting

"Password entry required for 'Enter Private Key Password:' (PID 4909).
Please enter password with the systemd-tty-ask-password-agent tool!"

when I login a terminal session?

Thanks,

Offline gieres

  • *
  • 213
  • +0/-0
Re: OpenVPN on Koozali 10 - "Password entry required"
« Reply #1 on: November 10, 2023, 08:30:39 AM »
Hi,
Perhaps have you forget to set password user in configuration panel ; by example in :
*In ubuntu go to '''Network Manager > VPN Connections > Configure VPN'''. Click '''import''' then in the explorer navigate to the openvpn folder in the home directory and select the .ovpn file created previously. This should automatically load all settings into network manager.
*Add username and password of client, then you have to give the path of the '''user.p12''' key of your user and set the  Private key password (the password set during the certificate creation in phpky).

Offline ReetP

  • *
  • 3,810
  • +5/-0
Re: OpenVPN on Koozali 10 - "Password entry required"
« Reply #2 on: November 10, 2023, 11:17:56 PM »
Or create the client certificate without a password?
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline joost

  • 19
  • +0/-0
Re: OpenVPN on Koozali 10 - "Password entry required"
« Reply #3 on: November 11, 2023, 07:41:34 PM »
I guess it was the deamon, because I got this message on Koozali server and I got rid of the message when I entered the CA-password. I'm still wondering is this normal? I cannot remember that in the passed with a former installation of a server that I got this same problem. So my question is, did I do something wrong? Thanks

Offline Jean-Philippe Pialasse

  • *
  • 2,820
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: OpenVPN on Koozali 10 - "Password entry required"
« Reply #4 on: November 11, 2023, 11:27:37 PM »
I guess it was the deamon, because I got this message on Koozali server and I got rid of the message when I entered the CA-password. I'm still wondering is this normal? I cannot remember that in the passed with a former installation of a server that I got this same problem. So my question is, did I do something wrong? Thanks

probably did not read the manual : https://wiki.koozali.org/OpenVPN_Bridge#Using_PHPki_to_manage_the_certificates


Quote
Password: This field must be blank. Remember that OpenVPN daemon starts without human intervention when the server boots, so it need to have access to the certificate key without being prompted for a password.

Offline joost

  • 19
  • +0/-0
Re: OpenVPN on Koozali 10 - "Password entry required"
« Reply #5 on: November 14, 2023, 01:19:30 PM »
If I try to leave the password field  empty when creating the CA I get the following error:

ERROR(S) IN FORM:
Missing Certificate Password
Missing Certificate Password Verification "Again"

Can I bypass this?

Offline ReetP

  • *
  • 3,810
  • +5/-0
Re: OpenVPN on Koozali 10 - "Password entry required"
« Reply #6 on: November 14, 2023, 02:11:52 PM »
You need to read more.

https://wiki.koozali.org/PHPki

You always add a password for creating your CA certificate when you set up PKPki.

You do not need a password when creating the user certificate for openvpn.

...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Jean-Philippe Pialasse

  • *
  • 2,820
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: OpenVPN on Koozali 10 - "Password entry required"
« Reply #7 on: November 14, 2023, 05:46:03 PM »
you need to select the type vpn client or vpn. server for the form to allow you mot to fill the password.