For the 2nd certificate provided [here](https://support.gluu.org/customization/4662/certfromstring-encoding-error/#at26620) I'm getting "Incorrect padding" exception from `base64.b64decode()` Seems like it reacts as such to enclosing "BEGIN/END" lines, as it's the only difference in it from the 1st certificate, which is processed without issues by both `b64decode` and `CertUtil.x509CertificateFromBytes()` I fail to see any issue here we should attend, from our side. You are free to use any other Python library for certificate processing if Gluu's `CertUtil` doesn't work for you. Then again, any issues with 3rd party libraries are of no concern to Gluu.
If you have a clear view of how the Gluu's current code could be enhanced to provide some required useful feature, please feel free to [submit a feature proposal at Github](https://github.com/GluuFederation/oxAuth/issues), or even commit the updated code itself. At the moment I see that at least for the 1st certificate provided by you `CertUtil.x509CertificateFromBytes()` produces some meaningful results. If it doesn't suite your needs, you should use some other 3rd-party library instead.