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:
Stanislav Laznicka 2017-03-27 10:31:36 +02:00 committed by Jan Cholasta
parent 8c87014e19
commit aae9a918b6
2 changed files with 0 additions and 12 deletions

View File

@ -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)

View File

@ -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)