flant / ovpn-admin

Simple web UI to manage OpenVPN users.
Apache License 2.0
1.39k stars 261 forks source link

create user failed #174

Closed albarki closed 1 year ago

albarki commented 1 year ago

Hi All,

Thanks for that great tool, I loved it, but I do have one issue, so I have secured my openvpn private key ca.key with a passphrase, and when I try to create a new account from the ovpn-admin it failed due to missing passphrase for private key, is there is a way I can pass this ?

INFO[0231] 104.28.228.187:40148 /api/user/create
DEBU[0231] cd /etc/openvpn/easy-rsa/ && easyrsa build-client-full ibrahim nopass 1>/dev/null
Enter pass phrase for /etc/openvpn/easy-rsa/pki/private/ca.key:
DEBU[0232] exit status 1 : -----
Using configuration from /etc/openvpn/easy-rsa/pki/easy-rsa-1249772.3C7LMO/tmp.4wNFVQ
Could not read CA private key from /etc/openvpn/easy-rsa/pki/private/ca.key
40F796A6C67F0000:error:1608010C:STORE routines:ossl_store_handle_load_result:unsupported:../crypto/store/store_result.c:151:
40F796A6C67F0000:error:1C800064:Provider routines:ossl_cipher_unpadblock:bad decrypt:../providers/implementations/ciphers/ciphercommon_block.c:124:
40F796A6C67F0000:error:11800074:PKCS12 routines:PKCS12_pbe_crypt_ex:pkcs12 cipherfinal error:../crypto/pkcs12/p12_decr.c:86:empty password

Easy-RSA error:

signing failed (openssl output above may have more detail)

Easy-RSA error:

Failed to sign 'ibrahim'
pashcovich commented 1 year ago

this possibility is not provided