https://flyte.org logo
#ask-the-community
Title
# ask-the-community
r

Rob Rati

05/31/2023, 3:40 PM
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

Ketan (kumare3)

06/01/2023, 4:04 AM
Cc @David Espejo (he/him)
r

Rob Rati

06/01/2023, 12:31 PM
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.
5 Views