I just created an account, have verified my email address. When I attempt to login I receive this error:
$ flyctl auth login
Error: Post "https://api.fly.io/api/v1/cli_sessions": tls: failed to verify certificate: x509: “api.fly.io” certificate is not standards compliant
What I’m using:
Starship shell on top of zsh
MacOS Ventura
M2 Macbook Pro
Do I need to update a package or should I be doing this from within a Docker container (the docs don’t mention Docker at this stage)
You shouldn’t need to make changes or use docker to hit our api. Our certificate is from LetsEncrypt and is currently valid, so that error makes me think there’s something happening in the network between your machine and our api. For example, some public wifi captive portals will hijack connections until you auth which can make certificates appear invalid. Enterprise or university networks could also have firewall rules in place that could cause this.
What type of network are you on? Does curl work? eg curl -v https://api.fly.io
Thanks for the response! I just moved into a new place so I’m on a high bandwidth mobile connection. Thus far it hasn’t been an issue, but it sound like your security is tight.
Still getting the same error message when I try to authenticate. I get this with ping:
ping api.fly.io
PING api.fly.io (77.83.143.220): 56 data bytes
64 bytes from 77.83.143.220: icmp_seq=0 ttl=51 time=115.725 ms
64 bytes from 77.83.143.220: icmp_seq=1 ttl=51 time=173.335 ms
64 bytes from 77.83.143.220: icmp_seq=2 ttl=51 time=113.344 ms
64 bytes from 77.83.143.220: icmp_seq=3 ttl=51 time=117.713 ms
64 bytes from 77.83.143.220: icmp_seq=4 ttl=51 time=119.470 ms
I just tried it with a VPN turned on, in the long shot hope that would bypass the cert issue. New error:
$ flyctl auth login
WARN failed querying for new release: Get "https://formulae.brew.sh/api/formula/flyctl.json": write tcp [fc00::6440:1]:62865->[2606:50c0:8001::153]:443: write: socket is not connected
Error: Post "https://api.fly.io/api/v1/cli_sessions": write tcp [fc00::6440:1]:62868->[2a09:8280:1:f28:246e:d6a:949:dbbf]:443: write: socket is not connected
Still not working. Worse, the problem is affecting other things like connecting to AWS. In the source code repo is there a place where changes to OSX setup are listed? (I’m not a golang coder).
I upgraded from OSX Ventura to OSX Sonoma. Now it works and my certificates are working again across everything. I feel like I hit an obscure edge cases, but since everything is working now if someone else on Ventura reports an error I would suggest you tell them to upgrade to Ventura.