Group :: Rede/Outros
RPM: crda
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: wireless-regdb-pubcert-conf.patch
Download
Download
diff --git a/wireless-regdb/gen-pubcert.sh b/wireless-regdb/gen-pubcert.sh
index 1a4d579..69c6a0f 100755
--- a/wireless-regdb/gen-pubcert.sh
+++ b/wireless-regdb/gen-pubcert.sh
@@ -5,14 +5,15 @@ if [[ $# -ne 2 ]]; then
exit 1
fi
+cat << EOF > pubcert.conf
+[ req ]
+distinguished_name = req_distinguished_name
+string_mask = utf8only
+prompt = no
+[ req_distinguished_name ]
+commonName = $3
+EOF
+
openssl req -new -key "$1" -days 36500 -utf8 -nodes -batch \
-x509 -outform PEM -out "$2" \
- -config <(cat <<-EOF
- [ req ]
- distinguished_name = req_distinguished_name
- string_mask = utf8only
- prompt = no
- [ req_distinguished_name ]
- commonName = $3
- EOF
- )
+ -config pubcert.conf