Commit Graph

269 Commits (18fabaef957d4a8e1f522804c8d3884a188c87f1)

Author SHA1 Message Date
Austin Lucas Lake 18fabaef95
updated code spacing and fixed text processing for key matching 2024-05-08 19:10:59 -07:00
Austin Lucas Lake 6edf177713
adding missing extraction of capture group from fingerprint regex 2024-05-06 15:00:11 -07:00
Austin Lucas Lake 7ce40a8610
removed no_log from fingerprints 2024-05-06 14:37:42 -07:00
Austin Lucas Lake 4c32b07dd1
fixed regex parsing for fingerprint after key generation 2024-05-06 13:29:11 -07:00
Austin Lucas Lake c77ef5d18d
fixed syntax errors 2024-05-06 11:46:01 -07:00
Austin Lucas Lake d826d901e6
consolidated functions and added parameter to force new key generation 2024-05-06 11:37:34 -07:00
Austin Lucas Lake 3ff3d83c91
fixed incorrect variable name when parsing regex 2024-05-06 03:58:55 -07:00
Austin Lucas Lake 4a7467a596
provide bin path for gpg executable 2024-05-06 03:42:59 -07:00
Austin Lucas Lake 90cf71281a
set defaults for all list-type parameters to empty list and ipdated regex searches 2024-05-06 02:48:38 -07:00
Austin Lucas Lake a70469ac13
fixed over-indentations 2024-05-05 21:06:16 -07:00
Austin Lucas Lake 01d6ee2b31
updated documentation for check_mode and diff_mode attributes 2024-05-05 20:20:46 -07:00
Austin Lucas Lake 4891695dc1
set subkeys parameter default to be empty list 2024-05-05 20:08:59 -07:00
Austin Lucas Lake 965b667bfc
reformated argument lists for run_module calls 2024-05-05 18:41:42 -07:00
Austin Lucas Lake 091c5d4503
removed extraneous character that was causing syntax error 2024-05-05 17:21:59 -07:00
Austin Lucas Lake 8685426fb6
updated documentation and curve requirements for ECC keys 2024-05-05 16:13:02 -07:00
Austin Lucas Lake 4753860fb3
fixed linting errors 2024-05-05 14:11:35 -07:00
Austin Lucas Lake 81166c799f
removed keyserver/transient_key parameters and dependencies on PluginGPGRunner and GPGError 2024-05-05 14:07:18 -07:00
Austin Lucas Lake d5d9c5dcaf
fixed suboptions in documentation for subkeys parameter
Co-authored-by: Felix Fontein <felix@fontein.de>
2024-05-05 10:06:09 -07:00
Austin Lucas Lake 440acfd047
syntax error in documentation 2024-05-05 02:21:14 -07:00
Austin Lucas Lake 86a111a6e8
fixing linting issues 2024-05-05 02:01:48 -07:00
Austin Lucas Lake ea6b1d7eff
added stricter matching passed on user input 2024-05-05 01:32:25 -07:00
Austin Lucas Lake c3660ec833
fixed invalid parameter name 2024-05-02 03:40:31 -07:00
Austin Lucas Lake af9571495b
updated formating+documentation and added ability to specify multiple subkeys 2024-05-02 03:35:05 -07:00
Austin Lucas Lake 422a248e9b
removed type hints 2024-05-01 21:36:15 -07:00
Austin Lucas Lake 84277a87cf
removed default key_type 2024-05-01 20:30:03 -07:00
Austin Lucas Lake f10082b846
updated return conditions in documentation
Co-authored-by: Felix Fontein <felix@fontein.de>
2024-05-01 12:42:29 -07:00
Austin Lucas Lake 132e7166dc
added missing punctuation in documentation
Co-authored-by: Felix Fontein <felix@fontein.de>
2024-05-01 12:34:03 -07:00
Austin Lucas Lake fd63e64ca4
fixed invalid variable name when unpacking matching keys
Co-authored-by: Felix Fontein <felix@fontein.de>
2024-05-01 12:20:51 -07:00
Austin Lucas Lake f28ca9cb93
added dummy variables when extracting output from gpg command
Co-authored-by: Felix Fontein <felix@fontein.de>
2024-05-01 12:18:22 -07:00
Austin Lucas Lake f47bb9520a
seperated if-else for improved readability
Co-authored-by: Felix Fontein <felix@fontein.de>
2024-05-01 11:49:28 -07:00
Austin Lucas Lake ccc39b388b
added elements qualifier to key_usage
Co-authored-by: Felix Fontein <felix@fontein.de>
2024-05-01 11:43:58 -07:00
Austin Lucas Lake adab532b83
added version_added (2.22.0) to documentation
Co-authored-by: Felix Fontein <felix@fontein.de>
2024-05-01 11:38:43 -07:00
Austin Lucas Lake 312d826fc1
add diff_mode (support: none) to attributes list
Co-authored-by: Felix Fontein <felix@fontein.de>
2024-05-01 11:38:00 -07:00
Austin Lucas Lake f03b55e1fa
new gpg_keypair module to manage GPG keys 2024-04-30 20:58:50 -07:00
Felix Fontein 33d278ad8f
acme_certificate: allow to request renewal of a certificate according to ARI (#739)
* Allow to request renewal of a certificate according to ARI in acme_certificate.

* Improve docs.

* Fix typo and use right object.

* Add warning.
2024-04-30 10:47:49 +02:00
Felix Fontein 6d4fc589ae
Implement basic acme_ari_info module. (#732) 2024-04-30 08:47:24 +02:00
Felix Fontein 9614b09f7a
Add function for retrieval of ARI information. (#738) 2024-04-29 23:37:55 +02:00
Felix Fontein af5f4b57f8
acme module utils: add functions for parsing Retry-After header values and computation of ARI certificate IDs (#737)
* Implement Retry-After value parse.

* Add cert ID computation function.

* Add tests and links to MDN.
2024-04-29 23:06:35 +02:00
Felix Fontein c6fbe58382
Implement certificate information retrieval code in the ACME backends. (#736) 2024-04-29 22:29:43 +02:00
Felix Fontein afe7f7522c
Split up the default acme docs fragment to allow modules ot not need account data. (#735) 2024-04-29 22:22:38 +02:00
Felix Fontein 0c62837296
crypto.math module utils: add some tests, fix quick_is_not_prime() for small primes (#733)
* Fix quick_is_not_prime() for small primes. Add some tests.

* Fix return value of convert_int_to_bytes(0, 0) on Python 2.

* Add some more test cases.

* Simplify the changelog and point out that these errors only happen for cases not happening in regular use.
2024-04-29 08:50:28 +02:00
Felix Fontein 27a9ff14fb
Add x509_certificate_convert module. (#728) 2024-04-18 05:50:36 +00:00
Felix Fontein ae548de502
Use timezone aware functionality when using cryptography >= 42.0.0 (#727)
* Use timezone aware functionality when using cryptography >= 42.0.0.

* Adjust OpenSSH certificate code to avoid functions deprecated in Python 3.12.

* Strip timezone info from isoformat() output.

* InvalidityDate.invalidity_date currently has no _utc variant.
2024-04-18 05:49:53 +00:00
Felix Fontein 1b75f1aa9c
Add and use CryptoBackend.get_ordered_csr_identifiers(). (#725) 2024-04-13 22:43:14 +02:00
Felix Fontein 08adb6b297
Deprecate check mode behavior of pipe modules. (#714) 2024-02-25 17:00:37 +01:00
Felix Fontein 1736602ce7
Allow to configure how serial numbers are provided to x509_crl. (#715) 2024-02-19 21:05:13 +01:00
Felix Fontein 6b1a3d6e68
Add conversion filters for serial numbers (#713)
* Refactoring.

* Add parse_filter and to_filter plugins.

* Mention filters when serial numbers are accepted or returned.
2024-02-18 21:27:48 +01:00
Steffen Gufler 51591891d3
luks_device: fix remove_keyslot not working when set to 0 and duplicate keys (#710)
* luks_device: fix remove_keyslot not working when set to 0

* luks_device: fix module outputting 'ok' when trying to add a key that is already present in another keyslot

* luks_device: fix breaking unit tests

* luks_device: Duplicate key test case code cleanup

* luks_device: Fix testing of LUKS passphrases when only testing one key slot

* luks_device: Fix testing of LUKS passphrases when only testing one key slot

* luks_device: Add changelog fragment for PR #710

* luks_device: Update changlog fragment
2024-02-11 12:23:21 +01:00
Felix Fontein 9ec8680936
Emit warning when consistency cannot be checked. (#705) 2024-01-27 10:39:13 +01:00
Felix Fontein 87af1f2761
Disable consistency checking of RSA keys for cryptography 42.0.0 which no longer gives access to the required function. (#702) 2024-01-26 17:47:46 +01:00