diff options
author | Petr Viktorin <pviktori@redhat.com> | 2013-03-27 14:25:18 +0100 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2013-04-15 16:56:12 -0400 |
commit | e736e75ce9724ae8298a5b69d093313cd6e62b60 (patch) | |
tree | c50816419b158762d6173c51dc2d74942a64cec3 /ipalib/x509.py | |
parent | 006ab23c6d404fd3ee1a33ac339c77789254860e (diff) | |
download | freeipa-e736e75ce9724ae8298a5b69d093313cd6e62b60.tar.gz freeipa-e736e75ce9724ae8298a5b69d093313cd6e62b60.tar.xz freeipa-e736e75ce9724ae8298a5b69d093313cd6e62b60.zip |
Drop --selfsign server functionality
Design: http://freeipa.org/page/V3/Drop_selfsign_functionality
Ticket: https://fedorahosted.org/freeipa/ticket/3494
Diffstat (limited to 'ipalib/x509.py')
-rw-r--r-- | ipalib/x509.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ipalib/x509.py b/ipalib/x509.py index 4f81fb59..dc5418e1 100644 --- a/ipalib/x509.py +++ b/ipalib/x509.py @@ -61,10 +61,9 @@ def subject_base(): return _subject_base def valid_issuer(issuer): + # Handle all supported forms of issuer -- currently dogtag only. if api.env.ra_plugin == 'dogtag': return DN(issuer) == DN(('CN', 'Certificate Authority'), subject_base()) - else: - return DN(issuer) == DN(('CN', '%s Certificate Authority' % api.env.realm)) def strip_header(pem): """ @@ -238,7 +237,6 @@ def verify_cert_subject(ldap, hostname, dercert): issuer = str(nsscert.issuer) del(nsscert) - # Handle both supported forms of issuer, from selfsign and dogtag. if (not valid_issuer(issuer)): raise errors.CertificateOperationError(error=_('Issuer "%(issuer)s" does not match the expected issuer') % \ {'issuer' : issuer}) |