thumbprint (SHA1): f4:8b:Ten: 4a:3f:b6:ee:bf:a7: in: the: BC:Panax Notoginseng: C8:A9:D9:Bayi: a4:2f: -Tomcat, --5-Ten, Privatekeyentry, certificate thumbprint (SHA1): the: -: 9E: $:D 2:eb: -: +: E8:8e:1e:f5: on: C6:AC:C5: the: 7D: the: +C:\Users\test>After the completion of the above process, certificate generation work is finished, in the C:\Users\test directory can see Server.keystore, CLIENT.P12, client1.cer three files1. Configure Tomcat belowCopy the Server.keystore to the D:\apache-tomca
certificate in a Web request -X509Certificate2 Cert2 =NewX509Certificate2 (Server.MapPath ("file name in PFX or P12 format"),"Certificate Password", X509keystorageflags.machinekeyset |x509keystorageflags.persistkeyset); in WebRequest.ClientCertificates.Add (CERT2); - to using(Stream Requeststream =Webrequest.getrequeststream ()) + { - byte[] Parambytes =Encoding.UTF
construction of the CA to fill in the same, if you want to modify the rules can be modified in the openssl.cnf [ CA_default ] ,
# Common Name 写域名或IPopenssl req -new -days 365 -key userkey.pem -out userreq.pem
Issued
openssl ca -in userreq.pem -out usercert.pem -extensions v3_req -config openssl.cnf
Making PFX
openssl pkcs12 -export -inkey userkey.pem -in usercert.pem -out user.pfxRevoking a certificateWell, we don't h
. The SSL layer is essentially a virtual one. So I found another way to set the client certificate:
Client certificates supportIf your server requires the use of client certificates, as of v1.8 it is now possible to send them with your request.
// Will send the certificate attached to the identity (identity is a secidentityref)[Request setclientcertificateidentity: identity];
// Add an additional certificate (where cert is a seccertificateref)[Request setclientcertificates: [nsarray arraywithobj
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service