Create certificates and bind SSL ports in WCF Security

Source: Internet
Author: User
Body:

Create a certificate first
Makecert-SK shareachcert-n "cn = orgnize name"-Sr localmachine-pe-sky-ic "C: \ shareach. Cer"

Install Certificate
I am an XP and 2003 System (Vista and 2008 use netsh without environment testing)
Download the tool httpcfg.exe: xp. 2003 can be found in the installation disk support/tools/support. Cab. You can copy it and use it. httpcfg usage
View all the ports bound to the certificate: httpcfg query SSL
Double-click the generated certificate. In the details, copy the value of thumbprint (Green, remove spaces) and run the following command:

Port-bound Certificate
Httpcfg set SSL-I 0.0.0.0: 8031-H 67935882259da4e90184ce4b76bf919279494874
Query httpcfg query SSL
------------------------------------------------------------------------------
IP: 0.0.0.0: 8031
Hash:
Guid: {00000000-0000-0000-0000-000000000000}
Certstorename: (null)
Certcheckmode: 0
Revocationfreshnesstime: 0
Urlretrievaltimeout: 0
Sslctlidentifier: (null)
Sslctlstorename: (null)
Flags: 0

Delete the certificate bound to the port
Httpcfg Delete SSL-I 0.0.0.0: 8031-H 67935882259da4e90184ce4b76bf919279494874

Category: WCF Release date:

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.