For this use the -proxy switch:
openssl s_client -proxy=proxy.domain.tld:8080 -connect quay.io:443 2>/dev/null | openssl x509 -text