'Generate a base64 encoded string from an SPKI
:return: The base64 encoded string'

def b64_encode(self):

    encoded = _lib.NETSCAPE_SPKI_b64_encode(self._spki)
    result = _ffi.string(encoded)
    _lib.CRYPTO_free(encoded)
    return result
