I'm using Yarn 4.6.0, and using yarn config set httpsCaFilePath <path-to-cert-pems> helped as I didn't want to disable strict ssl. This is provided you can get the cert pems for your CA.
yarn config set httpsCaFilePath <path-to-cert-pems>