You are not logged in.

#1 2016-05-10 21:27:35

willy9
Member
Registered: 2009-04-14
Posts: 56

Openvpn : Failed to create client key

I'm trying to generate keys for a new client machine on my existing Openvpn server. I already successfully generated keys there a few weeks ago, but the method described in the wiki is now failing with error :

unable to load certificate
139983183140504:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:701:Expecting: TRUSTED CERTIFICATE

What could be the reason for this ? It did work before...


Skrooge, a personal finances manager for the Plasma Desktop
http://skrooge.org

Offline

#2 2016-05-11 04:56:01

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Openvpn : Failed to create client key

Post the exact command sequence that you are using. Also make sure that your CA certificate hasn't expired.

Offline

#3 2016-05-11 12:55:53

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Openvpn : Failed to create client key

You might want to use pkitool instead of calling the other scripts directly. Call pkitool without arguments to see the help.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#4 2016-05-11 19:48:09

willy9
Member
Registered: 2009-04-14
Posts: 56

Re: Openvpn : Failed to create client key

x33a wrote:

Post the exact command sequence that you are using. Also make sure that your CA certificate hasn't expired.

Here is the exact sequence:

ssh obelix
su
cd /root/easy-rsa
source ./vars
./build-key pneumatix

The ca certificate was generated on April 14th, with a validity of 3650 days. I should have a ca.crt and a ca.key, right ?


Skrooge, a personal finances manager for the Plasma Desktop
http://skrooge.org

Offline

#5 2016-05-12 09:13:00

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Openvpn : Failed to create client key

willy9 wrote:

Here is the exact sequence:

ssh obelix
su
cd /root/easy-rsa
source ./vars
./build-key pneumatix

The ca certificate was generated on April 14th, with a validity of 3650 days. I should have a ca.crt and a ca.key, right ?

Your commands look fine and yes, you should have a ca.crt and ca.key as well.

Offline

Board footer

Powered by FluxBB