简体   繁体   中英

Two way mutual SSL authentication

https://www.naschenweng.info/2018/02/01/java-mutual-ssl-authentication-2-way-ssl-authentication/

I tried implementing the "SSLMutualAuthTest" code in the above link. But it has a function 'PrivateKeyStrategy()' which is currently deprecated in the java version-8. I am not able to find a alternate function for it.

Use org.apache.http.ssl.PrivateKeyStrategy instead. It seems the interface has moved from the httpclient library to httpcore library.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM