Using Atuin behind corporate proxy

Hi,
After installing with brew, I tried to register myself into the server :
atuin register -u blaurent -e email@gmail.com -p $(pass Misc/atuin)

I get the following error :

Registering for an Atuin Sync account
Error: error sending request for url (https://api.atuin.sh/user/blaurent): error trying to connect: invalid peer certificate: BadSignature

Caused by:
0: error trying to connect: invalid peer certificate: BadSignature
1: invalid peer certificate: BadSignature

Location:
/private/tmp/atuin-20240610-8671-h80ut1/atuin-18.3.0/crates/atuin-client/src/api_client.rs:49:16

I am running atuin with a mac behind a corporate proxy that does all the annoying things proxy does with ssl certificates, etc…

Can you run

curl https://api.atuin.sh

Otherwise we use Cloudflare/letsencrypt, so if your org is messing with that I’m not sure what we can do :confused:

Hi @ellie,
Thanks for the reply :
curl seems to work :

{“homage”:“"Through the fathomless deeps of space swims the star turtle Great A’Tuin, bearing on its back the four giant elephants who carry on their shoulders the mass of the Discworld." – Sir Terry Pratchett”,“version”:“18.3.0”,“total_history”:136578982}%

I’ve tested something else, stopping the vpn… and it seems to work.
Is there a verbose mode, which I can use to trace more what is happening ?

You can use ATUIN_LOG=debug atuin sync. It’ll be super verbose!

Hello, sorry to intrude on this conversation but I have a similar problem. Is there any support for using a proxy with atuin?

It sounds like you all have a corp using SSL packet inspection, which involves reencrypting the SSL connection. Typically, if you can add your corp’s certificate to the app’s trust store, it will work again.

Here’s one vendor’s help page about it:
https://help.zscaler.com/zia/adding-custom-certificate-application-specific-trust-store