|
certbotbot
Reference documentation for a modular Bash project
|
Conditional authenticated-GnuPG capability preflight for the client. More...
Functions | |
| int | certbotbot_client_crypto_probe_packets (String home, String packet) |
| Recognizes the expected issuer-compatible authenticated probe format. | |
| int | certbotbot_client_crypto_require (String workspace) |
| Proves the local GnuPG implementation can produce and consume v1 OCB. | |
| int | certbotbot_client_crypto_framing_valid (String packet) |
| Requires exactly one complete SKESK packet then one AEAD packet. | |
| int | certbotbot_client_crypto_unwrap (String workspace) |
| Authenticates the selected exact-v1 S3 ciphertext before any tar work. | |
Conditional authenticated-GnuPG capability preflight for the client.
ADR-037 requires a real AES-256/OCB encrypt/decrypt roundtrip with the producer's exact S2K and packet parameters before encrypted retrieval. Only authenticated, checked ciphertext is handed to the existing validator. The entrypoint captures the exported secret into a non-exported Bash local and removes its environment name before any external program is invoked.
| int certbotbot_client_crypto_framing_valid | ( | String | packet | ) |
Requires exactly one complete SKESK packet then one AEAD packet.
OpenPGP packet framing is length-delimited; GnuPG diagnostic text alone does not prove that a complete ciphertext was consumed. This bounded, streaming byte walk accepts old/new definite-length headers and RFC-4880 new-format partial-body chunks, but no extra packet or trailing bytes. Format details still require the separate GnuPG packet inspection and authenticated decrypt. This parser does not interpret crypto payloads.
| packet | Privately staged binary GnuPG ciphertext. |
| 0 | Exactly two complete supported packet frames and no trailing data. |
| 1 | Invalid, overlong, truncated or unsupported framing. |
| int certbotbot_client_crypto_probe_packets | ( | String | home, |
| String | packet | ||
| ) |
Recognizes the expected issuer-compatible authenticated probe format.
| home | Private GnuPG home owned by this invocation. |
| packet | Fresh probe ciphertext in the private workspace. |
| 0 | Probe packet reports the expected v1 OCB cipher and S2K. |
| 1 | Missing, invalid, or unsupported probe packet. |
| int certbotbot_client_crypto_require | ( | String | workspace | ) |
Proves the local GnuPG implementation can produce and consume v1 OCB.
| workspace | New private mode-0700 staging directory. |
| 0 | GnuPG >=2.4.7 and actual authenticated OCB roundtrip succeeded. |
| 69 | Missing, incompatible, or malfunctioning GnuPG capability. |
| int certbotbot_client_crypto_unwrap | ( | String | workspace | ) |
Authenticates the selected exact-v1 S3 ciphertext before any tar work.
Only the existing client workspace is touched. GnuPG may write plaintext before its final AEAD check; therefore the private candidate is NEVER handed to tar or presented as downloaded.tar.gz until GnuPG has exited successfully, its complete framed packet has been inspected, and the existing bounded archive validator has accepted the decrypted file. The entrypoint's EXIT cleanup owns all temporary paths on every failure.
| workspace | Existing private client workspace after one S3 GetObject. |
| 0 | Full authenticated gzip/tar now staged as downloaded.tar.gz. |
| 65 | Missing/wrong envelope, unsupported packet, bad key or archive. |
| 74 | Local private staging failure. |