242
a.
Select
Control Panel
>
Administrative Tools
>
Internet Information Services (IIS)
Manager
from the start menu.
b.
Select
Web Sites
from the navigation tree.
c.
Right-click
Default Web Site
and select
Properties
>
Home Directory
.
d.
Specify the path for certificate service in the
Local path
box.
e.
Specify a unique port number for the default website to avoid conflict with existing services.
In this example, port 8080 is used.
Configuring the device
1.
Synchronize the device's system time with the CA server for the device to correctly request
certificates. (Details not shown.)
2.
Create an entity named
aaa
and set the common name to
test
.
<Device> system-view
[Device] pki entity aaa
[Device-pki-entity-aaa] common-name test
[Device-pki-entity-aaa] quit
3.
Configure a PKI domain:
# Create a PKI domain named
winserver
and enter its view.
[Device] pki domain winserver
# Set the name of the trusted CA to
myca
.
[Device-pki-domain-winserver] ca identifier myca
# Configure the certificate request URL. The URL format is
http://host:port/certsrv/mscep/mscep.dll
, where
host:port
is the host IP address and port
number of the CA server.
[Device-pki-domain-winserver] certificate request url
http://4.4.4.1:8080/certsrv/mscep/mscep.dll
# Specify the RA to accept certificate requests.
[Device-pki-domain-winserver] certificate request from ra
# Specify the PKI entity name as
aaa
.
[Device-pki-domain-winserver] certificate request entity aaa
# Specify the RSA key pair with the purpose
general
, the name
abc
, and the length 1024 bits.
[Device-pki-domain-winserver] public-key rsa general name abc length 1024
[Device-pki-domain-winserver] quit
4.
Generate an RSA local key pair:
[Device] public-key local create rsa name abc
The range of public key size is (512 ~ 2048).
If the key modulus is greater than 512,it will take a few minutes.
Press CTRL+C to abort.
Input the modulus length [default = 1024]:
Generating Keys...
..........................++++++
.....................................++++++
Create the key pair successfully.
5.
Request a local certificate:
# Obtain the CA certificate and save it locally.
[Device] pki retrieve-certificate domain winserver ca
The trusted CA's finger print is:
MD5 fingerprint:766C D2C8 9E46 845B 4DCE 439C 1C1F 83AB