mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Use consistent, specific nickname for the IPA CA certificate.
Also fix some imports for sha. We have a compat module for it, use it. ticket 181
This commit is contained in:
@@ -21,10 +21,12 @@ from ipapython import ipautil
|
||||
from ipapython import nsslib
|
||||
from ipalib import pkcs10
|
||||
import tempfile
|
||||
import sha
|
||||
from ipalib.compat import sha1
|
||||
import shutil
|
||||
import os
|
||||
|
||||
CA_NICKNAME = "IPA CA"
|
||||
|
||||
class CertDB(object):
|
||||
"""
|
||||
To be used for temporary NSS databases only. If temporary is set then
|
||||
@@ -64,7 +66,7 @@ class CertDB(object):
|
||||
return ipautil.run(new_args, stdin)
|
||||
|
||||
def generate_random(self):
|
||||
return sha.sha(ipautil.ipa_generate_password()).hexdigest()
|
||||
return sha1(ipautil.ipa_generate_password()).hexdigest()
|
||||
|
||||
def create_noise_file(self):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user