Fix requesting certificates that contain subject altnames.

https://fedorahosted.org/freeipa/ticket/3184
This commit is contained in:
Rob Crittenden 2012-10-17 13:44:45 -04:00 committed by Martin Kosek
parent fed5bbd298
commit 4a97fd0601

View File

@ -336,6 +336,7 @@ class cert_request(VirtualCommand):
subjectaltname = pkcs10.get_subjectaltname(request)
if subjectaltname is not None:
for name in subjectaltname:
name = unicode(name)
try:
hostentry = api.Command['host_show'](name, all=True, raw=True)['result']
hostdn = hostentry['dn']