69ef562811
- Include upstream patches: + 4eac410.patch Fix string comprehension + a138c0d.patch Fix incorrect "openssl rand" usage + 83a1a21.patch Add --copy-ext option - Include upstream patches: + d20d2b3.patch Update docs and examples to fit changes in 534f673 - Adapted easy-rsa-packaging.patch to work with upstream patch - Include upstream patches: + 534f673.patch Make $PWD/pki the default PKI location - Adapted easy-rsa-packaging.patch to work with upstream patch - Treat /etc/easy-rsa as public default config, no default vars OBS-URL: https://build.opensuse.org/request/show/518428 OBS-URL: https://build.opensuse.org/package/show/network:vpn/easy-rsa?expand=0&rev=10
23 lines
816 B
Diff
23 lines
816 B
Diff
From a138c0d83b0ff1feed385c5d2d7a1c25422fe04d Mon Sep 17 00:00:00 2001
|
|
From: Uwe Hermann <uwe@hermann-uwe.de>
|
|
Date: Sat, 19 Aug 2017 18:17:43 +0200
|
|
Subject: [PATCH] Fix incorrect "openssl rand" usage (#138).
|
|
|
|
---
|
|
easyrsa3/easyrsa | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa
|
|
index e004e2b..f73b375 100755
|
|
--- a/easyrsa3/easyrsa
|
|
+++ b/easyrsa3/easyrsa
|
|
@@ -572,7 +572,7 @@ sign_req() {
|
|
# Randomize Serial number
|
|
local i= serial= check_serial=
|
|
for i in 1 2 3 4 5; do
|
|
- "$EASYRSA_OPENSSL" rand -hex 16 -out "$EASYRSA_PKI/serial"
|
|
+ "$EASYRSA_OPENSSL" rand -hex -out "$EASYRSA_PKI/serial 16"
|
|
serial="$(cat "$EASYRSA_PKI/serial")"
|
|
check_serial="$("$EASYRSA_OPENSSL" ca -config "$EASYRSA_SSL_CONF" -status "$serial" 2>&1)"
|
|
case "$check_serial" in
|