Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3.2.0-beta1 #1046

Merged
merged 26 commits into from
Dec 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
6131cbf
New Command 'rand': 'Expose easyrsa_random() to the command line
TinCanTech Dec 8, 2023
3a4dcd2
Correct 'trap' command for 'SIGTERM'
TinCanTech Dec 8, 2023
ac8407d
Remove unsupported option --fix-offset from option parsing
TinCanTech Dec 8, 2023
81b381f
Reorder initial setup commands
TinCanTech Dec 8, 2023
e1a0655
Introduce write_easyrsa_ssl_cnf_tmp(): Verify/create EASYRSA_SSL_CONF
TinCanTech Dec 8, 2023
66e39c8
Replace copy_data_to_pki() with locate_support_files()
TinCanTech Dec 8, 2023
75cbe03
Move call to locate_support_files() to invocation layer (Simplify)
TinCanTech Dec 8, 2023
1756e7a
Move call to verify_ssl_lib() to invocation layer (Simplify)
TinCanTech Dec 8, 2023
dcb19b2
Move call to write_easyrsa_ssl_cnf_tmp() to secure_session()
TinCanTech Dec 8, 2023
6b6568d
Move check for $working_safe_ssl_conf to invocation layer (Simplify)
TinCanTech Dec 8, 2023
a617f79
Move OpenSSL Version message to verify_ssl_lib() at verbose level
TinCanTech Dec 8, 2023
ca62e66
verify_working_env(): Minor clean up
TinCanTech Dec 8, 2023
a8503dd
Make shellcheck directives searchable, add function name to comment
TinCanTech Dec 9, 2023
0d68ccb
Add 'email' and 'kdc' to create_x509_type()
TinCanTech Dec 9, 2023
c814e0a
Introduce command 'write' - Write support files
TinCanTech Dec 12, 2023
058d3eb
ChangeLog: Add new command 'write'
TinCanTech Dec 12, 2023
fbd8a45
Add command option 'legacy-hard' (Over-write files) to command 'write'
TinCanTech Dec 13, 2023
468a9e0
Update doc/EasyRSA-Advanced.md: Add 'Advanced configuration files'
TinCanTech Dec 13, 2023
4c5c9d9
Add 'confirm' to command 'write legacy-hard': Confirm file OVERWRITE
TinCanTech Dec 13, 2023
66a8f3e
init-pki: Always write vars.example file to fresh PKI
TinCanTech Dec 14, 2023
784ad81
ChangeLog: init-pki: Always write vars.example file to fresh PKI
TinCanTech Dec 14, 2023
009ea1f
build-ca: Do not export CA password to environment
TinCanTech Dec 14, 2023
3c3423b
ChangeLog: Remove duplicated information
TinCanTech Dec 14, 2023
1c6b31a
ChangeLog: Rename X509-type file 'code-signing' to 'codeSigning'
TinCanTech Dec 14, 2023
8fc2f89
write: Use verify_working_env(), require a PKI
TinCanTech Dec 14, 2023
01ede8a
cleanup(): Only print a clean line after restoring a hidden prompt
TinCanTech Dec 14, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
Easy-RSA 3 ChangeLog

3.2.0 (TBD)
* Rename X509-type file `code-signing` to `codeSigning` (Part of #1046)
The original file will be retained as `code-signing`, however, the automatic
X509-types creation will name the file `codeSigning`. This effectively means
that both are valid X509-types, until `code-signing` is dropped.
* Important note: As of Easy-RSA version 3.2.0-beta1, the configuration files
`vars.example`, `openssl-eayrsa.cnf` and all files in `x509-types` directory
are no longer required. Package maintainers can omit these files in the future.
All files are created as required and deleted upon command completion.
`vars.example` is created during `init-pki` and placed in the fresh PKI. 66a8f3e
These files will be retained for downstream packaging compatibility.
* New command 'write': Write 'legacy' files to stdout or files (#1046) c814e0a
* New Command 'rand': Expose easyrsa_random() to the command line (#1046) 6131cbf
* Remove function 'set_pass_legacy()' (#1045)
* Remove command 'rewind-renew' (#1045)
* Remove command 'rebuild' (#1045)
Expand Down
34 changes: 34 additions & 0 deletions doc/EasyRSA-Advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,40 @@ Additionally, the contents of the env-var `EASYRSA_EXTRA_EXTS` is appended with
its raw text added to the OpenSSL extensions. The contents are appended as-is to
the cert extensions; invalid OpenSSL configs will usually result in failure.

Advanced configuration files
----------------------------

The following files are used by Easy-RSA to configure the SSL library:
* openssl-easyrsa.cnf - Configuration for Certificate Authority [CA]
* x509-types: COMMON, ca, server, serverClient, client, codeSigning, email, kdc.
Each type is used to define an X509 purpose.

Since Easy-RSA version 3.2.0, these files are created on-demand by each command
that requires them. However, if these files are found in one of the supported
locations then those files are used instead, no temporary files are created.

The supported locations are listed, in order of preference, as follows:
* `EASYRSA_PKI` - Always preferred.
* `EASYRSA` - For Windows.
* `PWD` - For Windows.
* `easyrsa` script directory - DEPRECATED, will be removed. Only for Windows.
* `/usr/local/share/easy-rsa`
* `/usr/share/easy-rsa`
* `/etc/easy-rsa`

The files above can all be created by using command: `easyrsa write legacy <DIR>`
To OVER-WRITE any existing files use command: `eaysrsa write legacy-hard <DIR>`
`<DIR>` is optional, the default is `EASYRSA_PKI`. This will create the files in
the current PKI or `<DIR>`. If created then these new files may take priority
over system wide versions of the same files. See `help write` for further details.

Note, Over-writing files:
Only command `write legacy-hard` will over-write files. All other uses of `write`
will leave an existing file intact, without error. If you want to over-write an
existing file using `write` then you must redirect `>foo` the output manually.

Example command: `easyrsa write vars >vars` - This will over-write `./vars`.

Environmental Variables Reference
---------------------------------

Expand Down
Loading