Page 1 of 1

Unknown cert type 'server'

Posted: Fri Mar 29, 2019 8:35 pm
by borman/m
I'm having difficulty figuring out how to have easyrsa create a signed certificate
I've run the following commands
easyrsa.real init-pki
easyrsa.real build-ca nopass
easyrsa.real build-server-full openvpn-server nopass
But this is the error when I try to run it.
_____________________________________________________
Using SSL: openssl OpenSSL 1.0.2r-freebsd 26 Feb 2019

Easy-RSA error:

Unknown cert type 'server'
______________________________________________________
openvpn 2.4.7
freebsd 11.2 Stable
The x509-types directory in to be located in the same directory as the 'easyrsa' script.
Any ideas of what I could be doing wrong?

Re: Unknown cert type 'server'

Posted: Sat Mar 30, 2019 3:29 pm
by TinCanTech
What is easyrsa.real ?

Re: Unknown cert type 'server'

Posted: Sat Mar 30, 2019 5:03 pm
by Pippin

Re: Unknown cert type 'server'

Posted: Sun Mar 31, 2019 4:57 am
by TinCanTech
Pippin wrote:
Sat Mar 30, 2019 5:03 pm
easyrsa under FreeBSD?
https://kifarunix.com/install-and-confi ... reebsd-12/
muchas gracias :mrgreen:

I think people should not use Free--bla, if they don't understand how it works

Or people could, at least, try to read the excellent docs these projects offer.

Re: Unknown cert type 'server'

Posted: Mon Apr 01, 2019 1:20 pm
by ecrist
What version of EasyRSA is installed? You can get this will `pkg info`, something like:

Code: Select all

ecrist@terrance:~-> pkg info easy-rsa | grep Version
Version        : 3.0.5_1

Re: Unknown cert type 'server'

Posted: Tue Apr 02, 2019 8:08 am
by borman/m
root@:/usr/local/etc/openvpn/easy-rsa # pkg info easy-rsa | grep Version
Version : 3.0.5_1
It's worked after adding an absolute path in var file:
set_var EASYRSA_EXT_DIR "/usr/local/etc/openvpn/easy-rsa/x509-types"
set_var EASYRSA_SSL_CONF "/usr/local/etc/openvpn/easy-rsa/openssl-easyrsa.cnf"

original:
set_var EASYRSA_EXT_DIR "$EASYRSA/x509-types"
set_var EASYRSA_SSL_CONF "$EASYRSA/openssl-easyrsa.cnf"