apc-p15-tool/CHANGELOG.md

123 lines
3.5 KiB
Markdown
Raw Permalink Normal View History

2024-02-03 16:19:05 +00:00
# APC P15 Tool Changelog
2024-09-17 22:44:35 +00:00
## [v1.1.0] - 2024-09-17
> [!IMPORTANT]
> The flag `apchost` on the `install` command has been renamed to
> `hostname`. This flag should contain the hostname only. If a non-
> default SSH port is needed, specify it in the `sshport` flag.
This version brings support for for RSA 4,092 bit and EC keys. These
keys are only compatible with NMC3 running newer firmwares. To know
if your firmware is new enough, SSH into your UPS and type `ssh` and enter.
If the UPS responds `Command Not Found` the firmware is too old or
otherwise incompatible.
This version also adds a post `install` check that connects to the web
ui and verifies the certificate served is the expected one. You can
specify a non standard ssl port with the `sslport` flag or skip the check
entirely with the `skipverify` flag.
2024-07-02 02:35:26 +00:00
## [v1.0.0] - 2024-07-01
First official stable release.
Fixes Go version in Github action.
2024-06-24 22:24:35 +00:00
## [v0.5.3] - 2024-06-24
Add 3,072 bit RSA key support.
2024-06-19 23:57:56 +00:00
## [v0.5.2] - 2024-06-19
Minor tweak to the previous version. Add timeout for shell
commands that don't execute as expected.
2024-06-19 01:38:00 +00:00
## [v0.5.1] - 2024-06-18
Both NMC2 and NMC3 should now be fully supported.
### Added
- Add proper NMC3 support.
- The `create` function now also generates a .p15 formatted key file.
The format of this file matches that of what is generated by the NMC
Security Wizard.
- Add additional b64 formatted output files when using the `--debug`
flag with `create`. These files can easily be pasted into an ASN1
decoder for inspection (except for the header file, as the header is
not ASN1 encoded).
### Fixed
- Fix `install` function for NMC3 on newer firmware version by
leveraging the native `ssl` command to install the key and cert, if
it is available. If not available, fallback to the 'old' way of
installing the SSL cert.
- Fix PowerShell build script in repo. Posted builds were not impacted
by this as the script is not used by the GitHub Action.
### Changed
- Move APC SSH functions to a separate package and change how commands
are sent. In particular, leverage the interactive shell to send
commands and read back the result of those commands.
- Set output file permissions to `0600` instead of `0777`.
- Minor logging updates.
- Leverage `strings.EqualFold` as a more robust alternative to using
`strings.ToLower` for string comparisons.
- Update Go version to 1.22.4.
- Update readme to clarify tool's purpose, current state, and
compatibility.
### Removed
N/A
2024-06-04 23:01:45 +00:00
2024-06-07 02:51:13 +00:00
2024-03-29 21:17:47 +00:00
## [v0.4.2] - 2024-03-29
Fix usage message. Thanks @k725.
2024-06-07 02:51:13 +00:00
2024-03-06 22:27:16 +00:00
## [v0.4.1] - 2024-03-06
2024-03-06 22:19:27 +00:00
Update to Go 1.22.1, which includes some security fixes.
2024-06-07 02:51:13 +00:00
2024-03-06 22:27:16 +00:00
## [v0.4.0] - 2024-02-05
2024-02-05 23:29:06 +00:00
Add `--restartwebui` flag to issue a reboot command to the webui
2024-06-04 23:01:45 +00:00
after a new certificate is installed. This was not needed with
2024-02-05 23:29:06 +00:00
my NMC2, but I suspect some might need it to get the new certificate
to actually load.
2024-06-07 02:51:13 +00:00
2024-03-06 22:27:16 +00:00
## [v0.3.3] - 2024-02-04
2024-02-04 22:11:15 +00:00
Add `--insecurecipher` flag to enable aes128-cbc and 3des-cbc for
older devices/firmwares. These ciphers are considered insecure and
2024-06-04 23:01:45 +00:00
should be avoided. A better alternative is to update the device
2024-02-04 22:11:15 +00:00
firmware if possible.
2024-06-07 02:51:13 +00:00
2024-03-06 22:27:16 +00:00
## [v0.3.2] - 2024-02-04
2024-02-04 16:05:04 +00:00
Add support for 1,024 bit RSA keys. These are not recommended! RSA
1024 is generally considered to not be completely secure anymore.
Add `diffie-hellman-group-exchange-sha256` key exchange algorithm
2024-06-04 23:01:45 +00:00
which may be needed by some UPSes to connect via SSH to use the
2024-02-04 16:05:04 +00:00
install command.
2024-06-07 02:51:13 +00:00
2024-03-06 22:27:16 +00:00
## [v0.3.1] - 2024-02-03
2024-02-03 19:09:34 +00:00
Fixes debug logging always being on. App now accurately reflects
the state of the --debug flag.
2024-06-07 02:51:13 +00:00
2024-03-06 22:27:16 +00:00
## [v0.3.0] - 2024-02-03
2024-02-03 17:47:21 +00:00
2024-02-03 16:19:05 +00:00
Initial release.