Commit Graph
79 Commits
Author SHA1 Message Date
Hugues Fafard a6be9e9df7 Fixed broken nopass option in build-ca subcommand 2018-02-26 15:53:08 +01:00
Eric F Crist 02532b2311 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 2ef2660470 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 6e35636879 Merge remote-tracking branch 'upstream/v3.0.5' into honor-vars 2018-02-26 14:22:19 +01:00
Kodie Glosser 8836d509ae formatting and travis fix 2018-02-21 10:55:15 -06:00
Hugues Fafard ef31c6c2e1 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 bdfbd51d7b 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 7f2dda12c2 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 6268cd9653 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 4c58b5eb89 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 dcc79b2319 Wrong SC code.
Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
2018-01-03 20:39:09 -06:00
Eric F Crist fefee6aa9f additional automation
Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
2018-01-03 20:36:14 -06:00
Eric F Crist 09e2c3b5c3 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 06fd217ff3 Allow "--copy-ext" without a value. (https://github.com/OpenVPN/easy-rsa/pull/153) 2018-01-02 16:53:15 -05:00
Bob Vincent 86c8fc6b4c Fix the --subject-alt-name option. 2018-01-02 16:53:13 -05:00
Bob Vincent 482b3e7ade Allow "--copy-ext" without a value. (https://github.com/OpenVPN/easy-rsa/pull/153) 2018-01-02 16:52:16 -05:00
Bob Vincent 9500a6a14b Fix the --subject-alt-name option. 2018-01-02 16:50:14 -05:00
Bob Vincent 3151860109 Fix generation of serverAltName. 2018-01-01 13:43:42 -05:00
Bob Vincent b83b8ff7a6 Fix generation of serverAltName. 2018-01-01 13:41:18 -05:00
Eric F Crist b3ed48042e 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 5d602778cf 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 2d2c3a7004 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 da2bd3afbd 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 b5803ee9e3 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 f58cbc7845 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 384d407408 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 d3502a9d85 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
Eric F Crist 3468f64257 Merge branch 'master' of https://github.com/alexz-kh/easy-rsa into alexz-kh-master 2017-08-22 20:05:04 -05:00
Eric F Crist 40d102a2d7 Merge branch 'contrib' of https://github.com/oreinert/easy-rsa into oreinert-contrib 2017-08-22 19:58:18 -05:00
Uwe Hermann a138c0d83b Fix incorrect "openssl rand" usage (#138). 2017-08-19 18:17:43 +02:00
Olav Reinert d20d2b3c06 Update docs and examples to fit changes in 534f673 2017-07-27 08:27:27 +02:00
azvyagintsev 4eac410bce Fix string comprehension
- "[[" syntax work only in "Bash"
2017-07-04 20:14:57 +03:00
Eric Crist 0fcdc33783 Merge pull request #128 from oreinert/contrib
Make $PWD/pki the default PKI location
2017-06-30 18:18:37 -05:00
Martin Schmitt e9e8e272e0 Moved @ValdikSS's serial randomization to sign_req 2017-06-30 17:21:10 +02:00
Martin Schmitt 6436eaf8c1 Add CN as SAN (if none requested) on server certs by default 2017-06-30 16:12:13 +02:00
Olav Reinert 534f673459 Make $PWD/pki the default PKI location 2017-06-05 23:41:14 +02:00
Chris Martin bc51795712 Remove extra space from directory help output 2016-12-13 16:53:14 -05:00
Jiri Tyr fb4d8d8e26 Fix comment indicating the end of the function
This patch corrects the comment indicating the end of the `verify_file()` function.
2016-06-21 14:17:34 +01:00
ValdikSS d309c6aaa2 Generate random serial number for all certificates 2016-02-29 21:30:53 +03:00
Eric F Crist 21ac0a76bc Use tmp file for gen-crl output
The mv operation following the CRL creation isn't useful as there is no
temp file to move.  Instead, create the temp file during CRL creation,
preventing a potential overwrite of a previous, valid, CRL.

Thanks go to matteo.guglielmi@epfl.ch for this patch (via email).

Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
2015-09-09 18:19:22 -05:00
Eric Crist f2f4ac8eb8 Merge pull request #32 from roubert/utf-8
Pass the flag -utf8 to openssl to interpret field values as UTF-8.
2015-09-02 18:40:08 -05:00
Eric Crist 8b42eead58 Merge pull request #61 from keros/change_default_private_key_encryption
changed default encrpytion algorithmus for keyfiles from des3 to aes256
2015-09-02 18:33:59 -05:00