Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force display_dn() and verify_file() to work without $OPENSSL_CONF #1161

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions easyrsa3/easyrsa
Original file line number Diff line number Diff line change
Expand Up @@ -3635,9 +3635,11 @@ display_dn - input error"

# Display DN
ssl_out="$(
"$EASYRSA_OPENSSL" "$format" -in "$path" -noout -subject \
-nameopt utf8,sep_multiline,space_eq,lname,align)" || \
die "display_dn: SSL command '$format'"
OPENSSL_CONF='' "$EASYRSA_OPENSSL" "$format" \
-in "$path" -noout -subject \
-nameopt utf8,sep_multiline,space_eq,lname,align \
2>/dev/null)" || die "display_dn: SSL command '$format'"

print "$ssl_out"
} # => display_dn()

Expand Down Expand Up @@ -3722,7 +3724,11 @@ Input is not a valid certificate:
verify_file() {
format="$1"
path="$2"
easyrsa_openssl "$format" -in "$path" -noout 2>/dev/null

# OPENSSL_CONF is not required, ignore warning
# Must not pass an unexpanded SSL cgf to LibreSSL
OPENSSL_CONF='' "$EASYRSA_OPENSSL" "$format" \
-in "$path" -noout 2>/dev/null
} # => verify_file()

# show-* command backend
Expand Down
Loading