14 Commits

Author SHA1 Message Date
Richard T Bonhomme
47080028e3
Remove stray space characters
Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
2022-06-20 23:11:59 +01:00
Richard T Bonhomme
72a32a3288
Introduce 'serialNumber' field for DN (OID 2.5.4.5)
Add a *final* layer of granularity to X509 Distinguished Name.
Only used if --req-serial="<PRINTABLE>user data" is specified.

To minimize the noise to the user by this new field, change the way
that OpenSSL is called to build a CA: Always use '-batch' mode.

User visible change when building a CA:
* Instead of being prompted for each individual DN field, now the
  user is presented with a read-out of how the fields are currently
  set. There is now only a single confirmation that all fields are
  correct.
* If '--req-serial' is not used then 'serialNumber' is not displayed.

PRINTABLE: a-z,A-Z,0-9, -+/=.,?:()

Closes: OpenVPN#462 - The original proposal and prototype code.
Closes: OpenVPN#598 - Supersedes: Introduce 1.organizationalUnitName
Closes: OpenVPN#600 - Bugfix: Remove unused 'name' definition from SSL conf.

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
2022-06-20 21:46:11 +01:00
Richard T Bonhomme
26dd7af541
Add label '%COPY_EXTS%' for --copy-ext feature
Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
2022-04-29 14:20:53 +01:00
Richard T Bonhomme
0cf547feab
Add placeholder for CA $X509_TYPES and $EXTRA_EXTS
Placeholder: %CA_X509_TYPES_EXTRA_EXTS%

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
2022-04-20 14:37:32 +01:00
Richard T Bonhomme
bce4dadc43
Use x509-types 'ca' and COMMON when building a CA
To sign a request, easyrsa uses 'openssl ca', which does support -extfile.

To create a CA, easyrsa uses 'openssl req', which does not support -extfile.

Therefore, the x509-types 'ca' and COMMON files cannot be specified using
-extfile to create a CA. Instead, they must be included within the SSL
config file, which 'openssl req' does support.

Using the same awk script from gen_req(), with New Token '#%X509_TYPES%',
the x509-types files 'ca' and COMMON are inserted into the SSL config file.

Closes: #525

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
2022-04-03 00:10:09 +01:00
Richard T Bonhomme
d0c8f30b66 Merge branch 'master' of github.com/a1346054/easy-rsa into a1346054-master 2022-03-22 12:00:10 +00:00
Richard T Bonhomme
753ea21e5f
OpenSSL Configuration: Add required white space separator
Closes: #431

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
2022-03-21 23:39:50 +00:00
a1346054
212c18a83c
Trim excess whitespace 2021-10-21 14:21:00 +00:00
a1346054
c6dd7ff1f6
Fix typo 2019-11-24 15:41:39 +00:00
Stefan Pietsch
4ce6e9c8e4 Fix typo 2019-02-08 00:11:08 +01:00
Eric F Crist
37edb7d1d7
Remove RANDFILE var from openssl-easyrsa.cnf
This fixes #261.

Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
2019-02-04 13:01:09 -06:00
Xavier Bachelot
ad86051d63 Allow certificate subject to _not_ be unique 2019-01-25 17:39:54 +01:00
Richard Bonhomme
cfab21f79f
libressl: prepare openssl-easyrsa.cnf for use with libressl 2018-08-23 20:03:36 +01:00
Eric F Crist
e8cd6c9807 Rename config to openssl-easyrsa.cnf
This clarifies the use of the file as specific to EasyRSA while also
closing the loop on the openssl version chase.  No reason to have a
configuration file that is specific to openssl version at this point.
If the need arises, we'll do so in a sane fashion.

Resolves #159

Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
2017-11-04 08:06:48 -05:00