How to Use the HTTP API in TiDB with TLS Enabled

Background Many customers have TLS enabled, which is different from the lab environment. Curl Curl requires a specified CA certificate, otherwise it will report an error. curl --cacert ca.crt https://127.0.0.1:10080/status Wget Many containers do not have curl, so wget is used instead. Wget is better as it does not require a CA certificate. wget --no-check-certificate http://127.0.0.1:10080/status

May 22, 2023 · 1 min · 56 words · Jack Yu

How to Create GitHub Verified Commits on a MacBook M1

Background One day, I impulsively turned on GitHub’s Vigilant mode. As a result, all my commits started looking like this. To figure out how to make them Verified, I found the following method. Method I actually referred to this link. However, it wasn’t quite enough, as there might be authentication-related issues on MacBooks that lead to commit errors. So, I found this solution. In summary, to verify, you need to enter a password. The issue on a Mac is the prompt for entering the password, which needs to be replaced with pinentry-mac, which most people install via homebrew. ...

February 12, 2022 · 1 min · 204 words · Jack Yu