- Added a new cmdlet,
Save-SecurityTxtFile
, to simply download a "security.txt" file. - Added a new cmdlet,
Find-SecurityTxtFile
, to locate a website's "security.txt" file, to ensure that it is in the correct well-known location instead of the legacy one. - Added Pester tests.
- Changed how this module interfaces with
gpg
, so that it's more predictable on non-English systems. Thank you to Johannes Schöpp for his great bug report, #3, and pull request, #4. - Improved detection of bad signatures.
- Removed extra spaces when a "security.txt" file has multiple
Preferred-Languages
. - Included RFC 9116 in here as
about_SecurityTxt
. - Fixed a bug where
Get-SecurityTxtFile
might attempt to fetch a file from a null URL. - Code cleanup.
- Fixed a bug preventing this module from working on Windows PowerShell 5.1. The
[HTTPWebRequest].BaseResponse.IsSuccessStatusCode
property was not supported when running under the .NET Framework.
- Added support for verifying digitally-signed "security.txt" files, if GnuPG is available.
- Made improvements to determining whether or not a file is canonical for a given URL. The RFC leaves it intentionally vague, so
IsCanonical
is now set if it matches either the request URI or the user-supplied URI.
- Add the cmdlet
Get-SecurityTxtFile
. - Fixed the user agent so that it shows the current version.
- Removed all references to "security.txt" being a draft standard, because it's not anymore; it's RFC 9116!
- Added ShouldProcess support for
New-SecurityTxtFile
. (PSScriptAnalyzer) - Refactored
Test-SecurityTxtFile
cmdlet.
Initial release.