Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
I am working through this and I noticed this in the build-ca step:
read EC key
writing EC key
Can't load /home/certs/easy-rsa/pki/.rnd into RNG
140323442652480:error:2406F079:random number
generator:RAND_load_file:Cannot open
file:../crypto/rand/randfile.c:98:
Filename=/home/certs/easyrsa/pki/.rnd
I do have a pki/.rnd file, but it concerns me that there may not be enough randomness if it truly cannot run the RNG.
This is on a brand new, patched 20.04 without other software installed. Were there other prerequisites?
Very helpful article. Thanks!
There’s one thing I don’t quite understand though:
If this request was for a real server like a web server or VPN server, the last step on the CA Server would be to distribute the new sammy-server.crt and ca.crt files from the CA Server to the remote server that made the CSR request"
In which case would I need to distribute ca.crt to the remote server? What do I do with it?
Article is a life saver; thank you. (Having to deal with non-let’s encrypt ssl is a pain.)
The ~/easy-rsa/vars file needs the following added to it, otherwise the values aren’t used:
set_var EASYRSA_DN "org"
From the vars.example file:
# Define X509 DN mode.
# This is used to adjust what elements are included in the Subject field as the DN
# (this is the "Distinguished Name.")
# Note that in cn_only mode the Organizational fields further below aren't used.
#
# Choices are:
# cn_only - use just a CN value
# org - use the "traditional" Country/Province/City/Org/OU/email/CN format
# set_var EASYRSA_DN "cn_only"
Other than that, this is a great tutorial and has been immensely helpful!
I am working to make ubuntu20 as CA server and after this i am importing CSR for Ubuntu20 to sign it as per instructions given in Step4. However I am seeing this error.
dk@Ubuntu:~/easy-rsa$ sudo ./easyrsa sign-req server NNHS
Note: using Easy-RSA configuration from: ./vars
Using SSL: openssl OpenSSL 1.1.1f 31 Mar 2020
You are about to sign the following certificate. Please check over the details shown below for accuracy. Note that this request 127.0.0.1 Ubuntu has not been cryptographically verified. Please be sure it came from a trusted source or that you have verified the request checksum with the sender.
Request subject, to be signed as a server certificate for 1080 days:
subject= commonName = M commonName = 10.0.0.13 organizationalUnitName = SLT 127.0.0.1 Ubuntu organizationName = J localityName = S stateOrProvinceName = C countryName = U
Type the word ‘yes’ to continue, or any other input to abort. Confirm request details: yes Using configuration from /home/dk/easy-rsa/pki/safessl-easyrsa.cnf Enter pass phrase for /home/dk/easy-rsa/pki/private/ca.key: ca: Error on line 17 of config file “/home/dk/easy-rsa/pki/extensions.temp” 139736827954496:error:0E079065:configuration file routines:def_load_bio:missing equal sign:…/crypto/conf/conf_def.c:391:line 17
Easy-RSA error:
signing failed (openssl output above may have more detail)
Can anyone help how to fix this please?
I want to get both server and client authentication for the same certificate. Can anyone help me on that. Currently I only able to get either server or client authentication. TIA!
Hi
Thank you for the guide so far but i seem to get some errors i can’t resolve. Any insight is welcome
40E7D43E297F0000:error:0700006C:configuration file routines:NCONF_get_string:no value:…/crypto/conf/conf_lib.c:315:group=<NULL> name=unique_subject Error checking certificate extensions from extfile section default 40E7D43E297F0000:error:0700006C:configuration file routines:NCONF_get_string:no value:…/crypto/conf/conf_lib.c:315:group=default name=extensions 40E7D43E297F0000:error:0700006C:configuration file routines:NCONF_get_string:no value:…/crypto/conf/conf_lib.c:315:group=CA_default name=email_in_dn 40E7D43E297F0000:error:0700006C:configuration file routines:NCONF_get_string:no value:…/crypto/conf/conf_lib.c:315:group=CA_default name=rand_serial 40E7D43E297F0000:error:04000067:object identifier routines:OBJ_txt2obj:unknown object name:…/crypto/objects/obj_dat.c:376: 40E7D43E297F0000:error:1100006E:X509 V3 routines:v2i_EXTENDED_KEY_USAGE:invalid object identifier:…/crypto/x509/v3_extku.c:95:Codesigning 40E7D43E297F0000:error:11000080:X509 V3 routines:X509V3_EXT_nconf_int:error in extension:…/crypto/x509/v3_conf.c:48:section=default, name=extendedKeyUsage, value=serverAuth, Codesigning
Easy-RSA error:
signing failed (openssl output above may have more detail)
Not sure if this documentation is current anymore. Following it exactly copying each command but when you get to the basic part of ./easyrsa init-pki it says the file is not found.
Is there anyway to integrate this with a domain controller? I would rather use my stand alone certificate authority than have it integrated with my domain controller