summaryrefslogtreecommitdiffstats
path: root/ipaserver/plugins/selfsign.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2010-09-28 23:10:25 -0400
committerRob Crittenden <rcritten@redhat.com>2010-10-01 13:37:34 -0400
commit3703062ab25a7817581eefa2f89214e8a6244bee (patch)
tree469a4abc1eea4dadac459e28936fe7e117e8808a /ipaserver/plugins/selfsign.py
parent3127df2aee8ad8ef95f34610665a004fece51acf (diff)
downloadfreeipa-3703062ab25a7817581eefa2f89214e8a6244bee.tar.gz
freeipa-3703062ab25a7817581eefa2f89214e8a6244bee.tar.xz
freeipa-3703062ab25a7817581eefa2f89214e8a6244bee.zip
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
Diffstat (limited to 'ipaserver/plugins/selfsign.py')
-rw-r--r--ipaserver/plugins/selfsign.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ipaserver/plugins/selfsign.py b/ipaserver/plugins/selfsign.py
index 5333a89a3..9943f73d2 100644
--- a/ipaserver/plugins/selfsign.py
+++ b/ipaserver/plugins/selfsign.py
@@ -39,6 +39,7 @@ from ipalib import Backend
from ipalib import errors
from ipalib import x509
from ipalib import pkcs10
+from ipapython.certdb import CA_NICKNAME
import subprocess
import os
import re
@@ -156,7 +157,7 @@ class ra(rabase.rabase):
"/usr/bin/certutil",
"-C",
"-d", self.sec_dir,
- "-c", "CA certificate",
+ "-c", CA_NICKNAME,
"-i", csr_name,
"-o", cert_name,
"-m", str(serialno),