I use spring and tomcat in my project. I need to get the environment variable SSL_CLIENT_M_SERIAL. In Apache this is done by making the corresponding settings in the php environment variable you can get $_SERVER["SSL_CLIENT_M_SERIAL"]. How to do this in TOMCAT+SPRING? Please help
all done!
Here is the solution to my problem:
import java.security.cert.X509Certificate;
......
Object o = request.getAttribute("javax.servlet.request.X509Certificate");
X509Certificate[] certs = (X509Certificate[]) o;
X509Certificate cert = certs[0];
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.