mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-26 16:16:31 -06:00
Remove publish_ca_cert() method from NSSDatabase
NSSDatabase.publish_ca_cert() is not used anymore, remove it. https://pagure.io/freeipa/issue/6806 Reviewed-By: Jan Cholasta <jcholast@redhat.com>
This commit is contained in:
parent
8c87014e19
commit
aae9a918b6
@ -576,12 +576,3 @@ class NSSDatabase(object):
|
||||
self.run_certutil(['-V', '-n', nickname, '-u', 'L'])
|
||||
except ipautil.CalledProcessError:
|
||||
raise ValueError('invalid for a CA')
|
||||
|
||||
def publish_ca_cert(self, canickname, location):
|
||||
args = ["-L", "-n", canickname, "-a"]
|
||||
result = self.run_certutil(args, capture_output=True)
|
||||
cert = result.output
|
||||
fd = open(location, "w+")
|
||||
fd.write(cert)
|
||||
fd.close()
|
||||
os.chmod(location, 0o444)
|
||||
|
@ -640,9 +640,6 @@ class CertDB(object):
|
||||
|
||||
self.export_ca_cert(nickname, False)
|
||||
|
||||
def publish_ca_cert(self, location):
|
||||
self.nssdb.publish_ca_cert(self.cacert_name, location)
|
||||
|
||||
def export_pem_cert(self, nickname, location):
|
||||
return self.nssdb.export_pem_cert(nickname, location)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user