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?
Unknown cert type 'server'
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
-
- OpenVPN Protagonist
- Posts: 11138
- Joined: Fri Jun 03, 2016 1:17 pm
Re: Unknown cert type 'server'
What is easyrsa.real ?
- 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'
easyrsa under FreeBSD?
https://kifarunix.com/install-and-confi ... reebsd-12/
https://kifarunix.com/install-and-confi ... reebsd-12/
-
- OpenVPN Protagonist
- Posts: 11138
- Joined: Fri Jun 03, 2016 1:17 pm
Re: Unknown cert type 'server'
muchas graciasPippin wrote: ↑Sat Mar 30, 2019 5:03 pmeasyrsa under FreeBSD?
https://kifarunix.com/install-and-confi ... reebsd-12/
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.
- ecrist
- Forum Team
- Posts: 237
- Joined: Wed Nov 26, 2008 10:33 pm
- Location: Northern Minnesota, USA
- Contact:
Re: Unknown cert type 'server'
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
IRC: #openvpn, #openvpn-devel
Co-Author of Mastering OpenVPN
Author of Troubleshooting OpenVPN
-
- OpenVpn Newbie
- Posts: 2
- Joined: Fri Mar 29, 2019 8:06 pm
Re: Unknown cert type 'server'
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"
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"