The wiki suggests that when using Gmail that an intermediate certificate should be used - Equifax_Secure_Certificate_Authority.pem
I wasn't able to get this working with the error
depth=1 C = US, O = Google Trust Services, CN = Google Internet Authority G3
verify error:num=20:unable to get...