Commit Graph
94 Commits
Author SHA1 Message Date
Eric F Crist 1f8017087d Merge branch 'btamayo-patch-1' into v3.0.5
Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
2018-09-14 22:41:33 -05:00
Eric F Crist a33928c76b Merge in other commits suitable for v3.0.5 from masteer.
Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
2018-09-07 09:41:39 -05:00
Richard Bonhomme e3c51b39f1 Fix set_pass() 'nopass' option 2018-09-07 13:23:35 +01:00
Eric F Crist 97e1501424 Update default certificate length, comments
- Resolve #57, set default certificate length to 1080 days, leaves CA
  certifcates at 3650
- Add EasyRSA version to certificate comment for later troubleshooting
  and identification.

Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
2018-08-23 16:51:17 -05:00
Richard Bonhomme c14f3c6b16 libressl: minor style corrections 2018-08-23 21:26:30 +01:00
Richard Bonhomme 24913874f5 libressl: use make_ssl_config and safessl-easyrsa.cnf for revoke 2018-08-23 21:20:53 +01:00
Richard Bonhomme 0d1c17a0e9 libressl: use make_ssl_config and safessl-easyrsa.cnf for gen_crl 2018-08-23 21:16:32 +01:00
Richard Bonhomme 185a5b671f libressl: use make_ssl_config and safessl-easyrsa.cnf for sign_req 2018-08-23 21:12:39 +01:00
Richard Bonhomme 247199489e libressl: use make_ssl_config and safessl-easyrsa.cnf for gen_req 2018-08-23 21:10:57 +01:00
Richard Bonhomme 95871dca5e libressl: use make_ssl_config and safessl-easyrsa.cnf for build_ca 2018-08-23 21:05:26 +01:00
Richard Bonhomme af9b01944e libressl: use make_ssl_config() for easyrsa openssl version check 2018-08-23 20:36:48 +01:00
Richard Bonhomme 9fafe1c352 libressl: add notify SSL library in use 2018-08-23 20:29:35 +01:00
Richard Bonhomme 6c171b7882 libressl: switch to using safessl-easyrsa.cnf
Keep openssl-easyrsa.cnf but switch to using safessl-easyrsa.cnf
Has the benefit of fixing easyrsa3 openssl version check for libressl
2018-08-23 20:22:43 +01:00
Richard Bonhomme b647256313 libressl: introduce function make_ssl_config
This function reads openssl-easyrsa.cnf and then
removes "ENV::" and replaces "$vars" with value
then writes the results to safessl-easyrsa.cnf
2018-08-23 20:12:55 +01:00
Richard Bonhomme 000b47712a libressl: prepare openssl-easyrsa.cnf for use with libressl 2018-08-23 20:03:36 +01:00
Hugues Fafard 63224439a6 Fixed broken nopass option in build-ca subcommand 2018-02-26 15:53:08 +01:00
Eric F Crist d37a608944 merge branch 'honor-vars' of https://github.com/Antagonym/easy-rsa into v3.0.5
Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
2018-02-26 07:34:23 -06:00
Eric F Crist 67f76dafe0 Remove quotes around $pkcs_opts
Credit to @OtherSystems and @Antagonym and some others who pointed this out.  This
resolves #189 and #193 and #186 and #179.

Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
2018-02-26 07:26:49 -06:00
Hugues Fafard 8b728d6a9e Merge remote-tracking branch 'upstream/v3.0.5' into honor-vars 2018-02-26 14:22:19 +01:00
Kodie Glosser 1968cb0259 formatting and travis fix 2018-02-21 10:55:15 -06:00
Hugues Fafard 9f5267a0a7 Honor priv-key related settings during build-ca
The EASYRSA_ALGO, EASYRSA_KEY_SIZE, and EASYRSA_CURVE settings in
`vars`, as well as their runtime overrides are ignored during `build-ca`
since 6268cd9. This restores previous behavior of honring the settings.

Should also fix #179.
2018-02-10 17:53:51 +01:00
Eric F Crist ca201d7ba8 Fix format string in printf
I knew this was hanging out there, but Antagoynm found it before I was
able to resolve it.  There was a message from shellcheck regarding this
one:
	SC2059: Don't use variables in the printf format string. Use
printf "..%s.." "$foo".

Should resolve #181

Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
2018-02-01 17:59:17 -06:00
Eric F Crist a1ed80517b Use stty -echo instead of read -s
Some Linux distros and BSD sh don't support the -s option to the read
builin.  This is the POSIX way to handle secure input to a tty.

Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
2018-01-21 23:41:07 -06:00
Eric F Crist fae653879e Default CA key to AES256
Defaults the CA key created using AES256.

This resolves #58 and resolves #17

Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
2018-01-21 11:10:25 -06:00
Eric F Crist 3861b37672 Merge branch 'v3.0.4'
Merging up to master.

Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
2018-01-21 10:13:34 -06:00
Eric F Crist ab8fa4803d Wrong SC code.
Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
2018-01-03 20:39:09 -06:00
Eric F Crist 6e69b85e3e additional automation
Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
2018-01-03 20:36:14 -06:00
Eric F Crist 972a999a40 This breaks stuff (probably)
Attempts at making shellcheck happy and a little bit of sanity checking
for travis-ci.  Going to try and get some basic easyrsa commands going
next, once I figure out what travis-ci's environment looks like.

Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
2018-01-03 18:54:23 -06:00
Bob Vincent da1942a2ab Allow "--copy-ext" without a value. (https://github.com/OpenVPN/easy-rsa/pull/153) 2018-01-02 16:53:15 -05:00
Bob Vincent 7799d78cac Fix the --subject-alt-name option. 2018-01-02 16:53:13 -05:00
Bob Vincent be20590d50 Allow "--copy-ext" without a value. (https://github.com/OpenVPN/easy-rsa/pull/153) 2018-01-02 16:52:16 -05:00
Bob Vincent 32a35bb18b Fix the --subject-alt-name option. 2018-01-02 16:50:14 -05:00
Bob Vincent afeb05b502 Fix generation of serverAltName. 2018-01-01 13:43:42 -05:00
Bob Vincent d3f1da5abe Fix generation of serverAltName. 2018-01-01 13:41:18 -05:00
Eric F Crist afd9bc0a4a Correct subjectAltName errors in server sign
Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
2017-12-24 10:00:20 -06:00
Eric F Crist 5da67665fa Declare some additional variables
Further fixes for #167 pointed out by bjoernv.  Thanks!

Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
2017-12-20 21:18:25 -06:00
Eric F Crist e48a065087 set input as var, not function call
Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
2017-12-14 22:02:23 -06:00
Eric F Crist f04622a623 More travis-ci changes, SAN fix, maybe related to #89
Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
2017-12-14 08:43:24 -06:00
Eric F Crist b8e92877b1 More travis-ci related cleanup
* Remove SC2006 from shellcheck: bashism
* Put variable declarations on separate lines (SC1007)
* Remove "local" from Windows sh script (SC2039)
* Remove "x" variable define from read in Windows sh script (SC2034)

Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
2017-12-14 08:35:41 -06:00
Eric F Crist ac50b32676 Actually fix #167
amkhiv was kind enough to point out I failed to fix the "local" syntax
removal from cmd_help().  tincantech has pointed this out and I intended
on fixing, but missed it.

Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
2017-12-14 06:57:11 -06:00
Eric F Crist 2306dbe2bd Correct "local" removal errors
Also, update the README to indicate master is development.  People don't
seem to understand that.

Resolves #167

Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
2017-12-12 19:36:18 -06:00
Eric F Crist fe49819728 Remove "local" keyword from variable assignment
Resolves #165

Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
2017-12-07 19:59:14 -06:00
Eric F Crist 7a29079efd Replace egrep with grep -E
This is an alternative to the proposed patch in #154 and is easier to
read than the change.

Closes #154.

Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
2017-12-07 18:56:20 -06: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
Eric F Crist cee40f9ee0 Merge branch 'directory-status-space' of https://github.com/chris-martin/easy-rsa into chris-martin-directory-status-space 2017-09-12 08:57:45 -05:00
Jason 146ed4c299 Improve mktemp compatibility
-u option doesn't exist on some implementations of mktemp (Busybox is one).
There doesn't seem to be any reason to use the option here anyway.
2017-09-10 16:38:16 +09:00
Eric F Crist 041062b377 Add code-signing x509-type.
Resolves #144

Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
2017-09-02 09:50:08 -05:00
Eric F Crist a675fc9941 Correct --copy-ext var, update changelog
Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
2017-09-02 09:40:12 -05:00
Victor Foitzik 9fccc3373c Fix error in random serial generation. 2017-08-25 07:39:20 +00:00
Eric F Crist 83a1a21e7a Add --copy-ext option
Adding the --copy-ext option to copy request extension data.  This will
resolve #60 and other Subject Alternative Name "issues" that have been
created.

Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
2017-08-22 20:52:26 -05:00