I think I am following that advice. Any ideas?
Here are my relevant settings:
env|grep proxy
https_proxy=https://dan.davidson:PASSWORD@PROXY:8080/
http_proxy=http://dan.davidson:PASSWORD@PROXY:8080/
no_proxy=localhost,127.0.0.1
Running the suggested code:
import 'dart:io';
printCertificate(cert) {
print('${cert.issuer}');
print('${cert.subject}');
print('${cert.startValidity}');
print('${cert.endValidity}');
}
main() {
var client = new HttpClient();
client.badCertificateCallback = (cert, host, port) {
print('Bad certificate connecting to $host:$port:');
printCertificate(cert);
print('');
return true;
};
.then((request) => request.close())
.then((response) {
print('Response certificate:');
printCertificate(response.certificate);
response.drain();
client.close();
});
}
-----------------------------------------------------------------------------------------------------------
dart goo.dart
CN=hq-webpx,O=XR Trading LLC,L=Chicago,ST=IL,C=US
CN=*.
dartlang.org,O=Google Inc,L=Mountain View,ST=California,C=US
2014-09-29 10:46:58.000
2015-09-29 10:46:58.000
Response certificate:
CN=hq-webpx,O=XR Trading LLC,L=Chicago,ST=IL,C=US
CN=*.
dartlang.org,O=Google Inc,L=Mountain View,ST=California,C=US
2014-09-29 10:46:58.000
2015-09-29 10:46:58.000
Running pub:
c:\ebisu>pub --trace upgrade
pub --trace upgrade