将证书导入证书库以后,HttpClient可以直接https接口:
sudo keytool -import -alias myfile.cer -keystore "/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home/jre/lib/security/cacerts" -file myfile.cer -trustcacerts
将证书导入证书库以后,HttpClient可以直接https接口:
sudo keytool -import -alias myfile.cer -keystore "/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home/jre/lib/security/cacerts" -file myfile.cer -trustcacerts