Thomas Vander Wal
05/12/2021, 7:17 PMlakectl
to use a custom SSL certificate? When I use an insecure route the cli works fine but when I secure it with our SSL certificate I get the following error.
❯ lakectl branch list <lakefs://repo/|lakefs://repo/>
Error executing command: Get "<https://secure-route/api/v1/repositories/repo/branches?after=&amount=100|https://secure-route/api/v1/repositories/repo/branches?after=&amount=100>": x509: certificate signed by unknown authority
Barak Amar
Barak Amar
Thomas Vander Wal
05/12/2021, 7:21 PM❯ lakectl branch list <lakefs://repo/|lakefs://repo/>
+--------+------------------------------------------------------------------+
| BRANCH | COMMIT ID |
+--------+------------------------------------------------------------------+
| main | 82a967204bcbbf819302876bac2bd3d9cd1fb1becf65d0b1200ae4ed27222670 |
+--------+------------------------------------------------------------------+
Thomas Vander Wal
05/12/2021, 7:26 PMkubectl
which seems to use it fine.Barak Amar
Thomas Vander Wal
05/12/2021, 7:30 PM0.40.3
downloaded from GitHubBarak Amar
Thomas Vander Wal
05/12/2021, 7:37 PM❯ env | grep lm_ca
PIP_CERT=/Users/me/certs/lm_ca.pem
CURL_CA_BUNDLE=/Users/me/certs/lm_ca.pem
LM_CERT_PATH=/Users/me/certs/lm_ca.pem
REQUESTS_CA_BUNDLE=/me/e379822/certs/lm_ca.pem
SSL_CERTS_FILE=/Users/me/certs/lm_ca.pem
AWS_CA_BUNDLE=/Users/me/certs/lm_ca.pem
PGO_CA_CERT=/Users/me/certs/lm_ca.pem
SSL_CERT_FILE=/Users/me/certs/lm_ca.pem
❯ curl "<https://AKIAJVQCBG3J6X5HPW2Q:redacted@secure-route/api/v1/repositories/repo/branches?after=&amount=100|https://AKIAJVQCBG3J6X5HPW2Q:redacted@secure-route/api/v1/repositories/repo/branches?after=&amount=100>"
{"pagination":{"has_more":false,"max_per_page":1000,"next_offset":"","results":1},"results":[{"commit_id":"82a967204bcbbf819302876bac2bd3d9cd1fb1becf65d0b1200ae4ed27222670","id":"main"}]}
Barak Amar
Barak Amar
Barak Amar
Barak Amar
Keychain Access
and drag the certificate into Certificates
Barak Amar
Always Trust
Thomas Vander Wal
05/12/2021, 7:53 PM