Skip to content

Commit

Permalink
Drop use of deprecated nsCertType
Browse files Browse the repository at this point in the history
  • Loading branch information
ehelms committed Aug 27, 2024
1 parent 3fc6f2b commit d56893c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion katello-certs-sign
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ emailAddress = optional
[ usr_cert ]
basicConstraints = CA:false
extendedKeyUsage = serverAuth,clientAuth
nsCertType = server
keyUsage = digitalSignature, keyEncipherment
# PKIX recommendations harmless if included in all certificates.
Expand Down
6 changes: 1 addition & 5 deletions katello_certs_tools/sslToolConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,23 +369,20 @@ def figureDEFS_distinguishing(options):
basicConstraints = CA:true
keyUsage = digitalSignature, keyEncipherment, keyCertSign, cRLSign
extendedKeyUsage = serverAuth, clientAuth
nsCertType = server, sslCA
subjectKeyIdentifier = hash
authorityKeyIdentifier = keyid, issuer:always
[ req_server_x509_extensions ]
basicConstraints = CA:false
keyUsage = digitalSignature, keyEncipherment
extendedKeyUsage = serverAuth, clientAuth
nsCertType = server
subjectKeyIdentifier = hash
authorityKeyIdentifier = keyid, issuer:always
[ req_client_x509_extensions ]
basicConstraints = CA:false
keyUsage = digitalSignature, keyEncipherment
extendedKeyUsage = serverAuth, clientAuth
nsCertType = client
subjectKeyIdentifier = hash
authorityKeyIdentifier = keyid, issuer:always
#===========================================================================
Expand All @@ -411,7 +408,6 @@ def figureDEFS_distinguishing(options):
basicConstraints = CA:false
keyUsage = digitalSignature, keyEncipherment
extendedKeyUsage = serverAuth, clientAuth
nsCertType = %s
subjectKeyIdentifier = hash
authorityKeyIdentifier = keyid, issuer:always
Expand Down Expand Up @@ -709,7 +705,7 @@ def save(self, d, caYN=0, verbosity=0):
)
else:
openssl_cnf = CONF_TEMPLATE_SERVER \
% (gen_req_distinguished_name(rdn), d['--purpose'], gen_req_alt_names(d, rdn['CN']))
% (gen_req_distinguished_name(rdn), gen_req_alt_names(d, rdn['CN']))

try:
rotated = rotateFile(filepath=self.filename, verbosity=verbosity)
Expand Down

0 comments on commit d56893c

Please sign in to comment.