In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
Travel, winter warm standing outdoor socks, quick dry socks, thickened socks.
Poke Ledu station http://zhoupa1188.taobao.com to snap up men's and women's thickened outdoor socks, coolmax, cotton, warm, sweat absorption, quick drying, mountaineering, hiking socks. Free delivery of 10 or more
It is common to introduce a certificate on the client side when using httpClient to connect to https. There are three ways to introduce:
1. Import a certificate in jdk
2. Set the certificate path to the environment variable:
System.setProperty ("javax.net.ssl.trustStore", keyStore_path)
System.setProperty ("javax.net.ssl.trustStorePassword", keyStore_password)
3. Add the certificate path to the startup parameters when starting the java process.
Sometimes you don't need a certificate to visit a https website. Sometimes the use of client certificates may not be successful, throwing a variety of certificate-related errors. At this point, you can use a server-side certificate (self-signed certificate). The method is simple, as long as you log out of the default Socket Factory before the httpClient call and use the custom Socket Factory:
Org.apache.commons.httpclient.protocol.Protocol.unregisterProtocol ("https"); org.apache.commons.httpclient.protocol.Protocol.registerProtocol ("https", new Protocol ("https", (ProtocolSocketFactory) new org.apache.commons.httpclient.contrib.ssl.EasySSLProtocolSocketFactory (), 13087); org.apache.commons.httpclient.protocol.Protocol.unregisterProtocol ("https") Org.apache.commons.httpclient.protocol.Protocol.registerProtocol ("https", new Protocol ("https", (ProtocolSocketFactory) new org.apache.commons.httpclient.contrib.ssl.EasySSLProtocolSocketFactory (), 13087))
It depends on the not-yet-commons-ssl-0.3.9.jar package:
Org.apache.commons
Not-yet-commons-ssl
0.3.9
The exception I encountered was:
Org.apache.axis2.AxisFault: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors
At org.apache.axis2.AxisFault.makeFault (AxisFault.java:430)
At org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo (SOAPMessageFormatter.java:83)
...
Caused by: com.ctc.wstx.exc.WstxIOException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors
At com.ctc.wstx.sw.BaseStreamWriter.flush (BaseStreamWriter.java:313)
At org.apache.axiom.om.impl.MTOMXMLStreamWriter.flush (MTOMXMLStreamWriter.java:146)
...
Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors
At com.sun.net.ssl.internal.ssl.Alerts.getSSLException (Alerts.java:150)
...
Caused by: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors
At sun.security.validator.PKIXValidator.doValidate (PKIXValidator.java:187)
...
Caused by: java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors
At sun.security.provider.certpath.PKIXCertPathValidator.engineValidate (PKIXCertPathValidator.java:195)
At java.security.cert.CertPathValidator.validate (CertPathValidator.java:206)
At sun.security.validator.PKIXValidator.doValidate (PKIXValidator.java:182)
... 49 more
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.