Be more careful when base64-decoding certificates

Only decode certs that have a BEGIN/END block, otherwise assume it
is in DER format.
This commit is contained in:
Rob Crittenden
2010-02-01 14:00:28 -05:00
parent 8ca97cdf35
commit dc55240fe8
4 changed files with 9 additions and 16 deletions

View File

@@ -48,7 +48,6 @@ import tempfile
from pyasn1 import error
from ipalib.request import ugettext as _
from pyasn1.codec.der import encoder
import base64
from ipalib.plugins.cert import get_csr_hostname
class ra(rabase.rabase):