Skip to content

unable to load CA private key #148

Closed
@deg0nz

Description

@deg0nz

Hi,

i can't get the container running. It already fails at creating the CA. I followed the readme exactly.
Everytime i start the init_pki command, there's a problem with the private key. I already tried running all containers with sudo and changed the permissions of /etc/openvpn.

Here's my output:

Your newly created PKI dir is: /etc/openvpn/pki

Generating a 2048 bit RSA private key
........................................................................+++
.........................................................................................+++
writing new private key to '/etc/openvpn/pki/private/ca.key.XXXXFeKjoN'
Enter PEM pass phrase:
Verifying - Enter PEM pass phrase:
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Common Name (eg: your user, host, or server name) [Easy-RSA CA]:

CA creation complete and you may now import and sign cert requests.
Your new CA certificate file for publishing is at:
/etc/openvpn/pki/ca.crt

Generating DH parameters, 2048 bit long safe prime, generator 2
This is going to take a long time

[Prime calc here]

DH parameters of size 2048 created at /etc/openvpn/pki/dh.pem

Generating a 2048 bit RSA private key
.....................................+++
...............+++
writing new private key to '/etc/openvpn/pki/private/open.vpn.kayuk.de.key.XXXXmPBgAM'
-----
Using configuration from /usr/share/easy-rsa/openssl-1.0.cnf
Enter pass phrase for /etc/openvpn/pki/private/ca.key:
unable to load CA private key
139697267367020:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:evp_enc.c:529:
139697267367020:error:23077074:PKCS12 routines:PKCS12_pbe_crypt:pkcs12 cipherfinal error:p12_decr.c:108:
139697267367020:error:2306A075:PKCS12 routines:PKCS12_item_decrypt_d2i:pkcs12 pbe crypt error:p12_decr.c:139:
139697267367020:error:0907B00D:PEM routines:PEM_READ_BIO_PRIVATEKEY:ASN1 lib:pem_pkey.c:141:

Easy-RSA error:

signing failed (openssl output above may have more detail)

Am I missing something?
I'm running Ubuntu 15.10.

Thanks in advance!

P.S. I can give you the output of docker run --volumes-from $OVPN_DATA -p 1194:1194/udp --privileged -e DEBUG=1 kylemanna/openvpn also if you need it, but since the CA already fails, I don't think it's needed here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions