'Convert the DER format certificate in der_cert to a PEM format
certificate and return it.'

def _der_to_pem(self, der_cert):

    return '-----BEGIN    CERTIFICATE-----\n{0}\n-----END    CERTIFICATE-----\n'.format('\n'.join(textwrap.wrap(base64.b64encode(der_cert).decode('utf8'), 64)))
