Package: easy-rsa
Version: 3.2.6-1
Severity: normal
File: /usr/share/easy-rsa/easyrsa
X-Debbugs-Cc: [email protected]

Dear Maintainer,

Using the easyrsa commands `build-client-full` or `build-serverClient-full`
generate certificates with the `extendedKeyUsage=serverAuth` extension.
With `build-client-full` the extension should be `extendedKeyUsage=clientAuth`,
while `build-serverClient-full` should have both.

The cause comes down to one omission in the script:

diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa
index c5ba1bb..bb3ec51 100755
--- a/easyrsa3/easyrsa
+++ b/easyrsa3/easyrsa
@@ -3022,7 +3022,7 @@ $(cat "$crt_source")
                crt_fingerprint="${crt_fingerprint#*=}"

                # Certificate type
-               inline_crt_type=
+               inline_crt_type="$crt_type"
                ssl_cert_x509v3_eku "$crt_source" inline_crt_type || \
                        warn "inline_file: Unknown cert-type:
'$inline_crt_type'"




-- System Information:
Debian Release: forky/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'testing-debug'), (500, 
'stable-updates'), (500, 'stable-security'), (500, 'oldstable-updates'), (500, 
'oldstable-security'), (500, 'unstable'), (500, 'stable'), (500, 'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.31-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages easy-rsa depends on:
ii  openssl  3.6.2-1

Versions of packages easy-rsa recommends:
ii  opensc  0.27.1-1

easy-rsa suggests no packages.

-- no debconf information

Reply via email to