diff options
| author | Stanislav Laznicka <slaznick@redhat.com> | 2017-03-27 10:31:36 +0200 |
|---|---|---|
| committer | Jan Cholasta <jcholast@redhat.com> | 2017-04-03 13:06:29 +0000 |
| commit | aae9a918b68dc4f9a7b4fb9abf1bb4d26673109d (patch) | |
| tree | c1568d63960e4e3404f414f1c27f5feabd4faf80 /ipapython | |
| parent | 8c87014e199b3dbe885c69d40a01d2723f813c3e (diff) | |
| download | freeipa-aae9a918b68dc4f9a7b4fb9abf1bb4d26673109d.tar.gz freeipa-aae9a918b68dc4f9a7b4fb9abf1bb4d26673109d.tar.xz freeipa-aae9a918b68dc4f9a7b4fb9abf1bb4d26673109d.zip | |
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>
Diffstat (limited to 'ipapython')
| -rw-r--r-- | ipapython/certdb.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/ipapython/certdb.py b/ipapython/certdb.py index 4485f7367..4d7f6e71e 100644 --- a/ipapython/certdb.py +++ b/ipapython/certdb.py @@ -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) |
