Unknown cert type 'server'

Support forum for Easy-RSA certificate management suite.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
borman/m
OpenVpn Newbie
Posts: 2
Joined: Fri Mar 29, 2019 8:06 pm

Unknown cert type 'server'

Post by borman/m » Fri Mar 29, 2019 8:35 pm

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?

TinCanTech
OpenVPN Protagonist
Posts: 11138
Joined: Fri Jun 03, 2016 1:17 pm

Re: Unknown cert type 'server'

Post by TinCanTech » Sat Mar 30, 2019 3:29 pm

What is easyrsa.real ?

User avatar
Pippin
Forum Team
Posts: 1201
Joined: Wed Jul 01, 2015 8:03 am
Location: irc://irc.libera.chat:6697/openvpn

Re: Unknown cert type 'server'

Post by Pippin » Sat Mar 30, 2019 5:03 pm


TinCanTech
OpenVPN Protagonist
Posts: 11138
Joined: Fri Jun 03, 2016 1:17 pm

Re: Unknown cert type 'server'

Post by TinCanTech » Sun Mar 31, 2019 4:57 am

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.

User avatar
ecrist
Forum Team
Posts: 237
Joined: Wed Nov 26, 2008 10:33 pm
Location: Northern Minnesota, USA
Contact:

Re: Unknown cert type 'server'

Post by ecrist » Mon Apr 01, 2019 1:20 pm

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
OpenVPN Community Administrator
IRC: #openvpn, #openvpn-devel
Co-Author of Mastering OpenVPN
Author of Troubleshooting OpenVPN

borman/m
OpenVpn Newbie
Posts: 2
Joined: Fri Mar 29, 2019 8:06 pm

Re: Unknown cert type 'server'

Post by borman/m » Tue Apr 02, 2019 8:08 am

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"

Post Reply