Take a personal certificate in Request

xiaoxiao2021-03-06  41

/ ** * Take SSLDN field * / java.security.cert.x509certificate [] certchain = (java.security.cert.x509certificate []) Req.getattribute ("javax.net.ssl.peer_certificates);

IF (Certchain! = null) {DN = Certchain [0] .GetsubjectDn (). getname (). Trim (); system.err.println ("Take SSLDN" ----------- ------ " DN);

转载请注明原文地址:https://www.9cbs.com/read-53217.html

New Post(0)