From 74ba0cc7c1bdb9c560324a68c16593755bcda5d8 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 1 Nov 2010 13:51:14 -0400 Subject: Use Realm as certs subject base name Also use the realm name as nickname for the CA certificate --- ipapython/certdb.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ipapython/certdb.py') diff --git a/ipapython/certdb.py b/ipapython/certdb.py index a2fbb0ec3..4e838025c 100644 --- a/ipapython/certdb.py +++ b/ipapython/certdb.py @@ -25,7 +25,9 @@ from ipalib.compat import sha1 import shutil import os -CA_NICKNAME = "IPA CA" +CA_NICKNAME_FMT = "%s IPA CA" +def get_ca_nickname(realm, format=CA_NICKNAME_FMT): + return format % realm class CertDB(object): """ -- cgit