Fix requesting certificates that contain subject altnames.

https://fedorahosted.org/freeipa/ticket/3184
This commit is contained in:
Rob Crittenden
2012-10-19 16:16:06 +02:00
committed by Martin Kosek
parent fed5bbd298
commit 4a97fd0601
+1
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']