Skip to content

Commit

Permalink
Merge pull request #622 from htcondor/V23_0-HTCONDOR-2637-cert-subject
Browse files Browse the repository at this point in the history
HTCONDOR-2637 Request old DN formatting for certificate issuer
  • Loading branch information
timtheisen authored Nov 25, 2024
2 parents c0e3ddf + d902e8c commit 4eb46cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/condor_ce_host_network_check
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ def main():
# If the host cert is missing or unreadable, emit a warning but keep going.
hostcert = htcondor.param.get("GSI_DAEMON_CERT", "/etc/grid-security/hostcert.pem")
if os.access(hostcert, os.R_OK):
fd = os.popen("openssl x509 -in %s -noout -subject" % hostcert)
fd = os.popen("openssl x509 -in %s -noout -subject -nameopt compat" % hostcert)
dn = fd.read().strip()
if fd.close() or not dn:
print(f"WARNING: OpenSSL unable to parse host certificate {hostcert}; GSI configuration will likely fail.", file=sys.stderr)
Expand Down

0 comments on commit 4eb46cd

Please sign in to comment.