Skip to content

build-ca: Command 'req', remove SSL option '-keyout' - CVE-2024-13454#1123

Merged
TinCanTech merged 2 commits intoOpenVPN:masterfrom
TinCanTech:build-ca-fix-encrypt
Apr 17, 2024
Merged

build-ca: Command 'req', remove SSL option '-keyout' - CVE-2024-13454#1123
TinCanTech merged 2 commits intoOpenVPN:masterfrom
TinCanTech:build-ca-fix-encrypt

Conversation

@TinCanTech
Copy link
Collaborator

OpenSSL command 'req', option '-keyout' behaves differently between OpenSSL v3.x verses v1.x

When the private key is encrypted:

  • v1.x ignores '-keyout' and does not create a new key.
  • v3.x creates a new key with different parameters to the original key.

v3.x creates the original key, encrypted by AES-256-CBC; then creates the unnecessary, secondary key, encrypted by DES-EDE3-CBC.

Because EasyRSA has already generated the private key, the 'req' command must not generate a secondary key.

OpenSSL command 'req', option '-keyout' behaves differently between OpenSSL
v3.x verses v1.x

When the private key is encrypted:
- v1.x ignores '-keyout' and does not create a new key.
- v3.x creates a new key with different parameters to the original key.

v3.x creates the original key, encrypted by AES-256-CBC; then creates
the unnecessary, secondary key, encrypted by DES-EDE3-CBC.

Because EasyRSA has already generated the private key, the 'req' command
must not generate a secondary key.

Signed-off-by: Richard T Bonhomme <[email protected]>
@TinCanTech TinCanTech merged commit 52e9da6 into OpenVPN:master Apr 17, 2024
@TinCanTech TinCanTech deleted the build-ca-fix-encrypt branch April 18, 2024 12:44
@TinCanTech TinCanTech changed the title build-ca: Command 'req', remove SSL option '-keyout' build-ca: Command 'req', remove SSL option '-keyout' - CVE-2024-13454 Jan 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CA Private Key will be encrypted with des-ede3-cbc during build-ca with OpenSSL 3.x - CVE-2024-13454

1 participant