What format should the `caCertFilePath` be in for ...
# ask-the-community
r
What format should the
caCertFilePath
be in for the .flyte/config? I've tried many different formats, but only .pem works for flytectl. Nothing works for pyflyte though. pyflyte thows this error when I use a .pem: Failed with Unknown Exception <class 'TypeError'> Reason: expected certificate to be bytes, got <class 'OpenSSL.crypto.X509'> expected certificate to be bytes, got <class 'OpenSSL.crypto.X509'>
k
Cc @David Espejo (he/him)
r
Tracking into the code, I think the problem is here: https://github.com/flyteorg/flytekit/blob/master/flytekit/clients/auth_helper.py#L179 load_cert returns a X509 object, but (if I'm looking at the correct function definitions), grpc.ssl_channel_credentials takes 3 strings.
155 Views