15: Maintenance
EMG™ Edge Management Gateway User Guide
333
cd ztp-cert
mkdir newcerts
cp /etc/ssl/openssl.cnf .
export OPENSSL_CONF=/root/ztp-cert/openssl.cnf
b. Under the
CA_default
section in openssl.cnf, change the directory where everything is
kept to ".":
[ CA_default ]
dir = . # Where everything is kept
c. The openssl.cnf sections
[ req ]
and
[ req_distinguished_name ]
can be updated with
specific options for certificate requests, or the defaults can be used.
d. Create the index.txt and serial files, which act as a flat file database to keep track of
signed certificates:
touch index.txt
echo 1000 > serial
echo 1000 > crlnumber
2. Create the root certificate:
a. Create the root CA's private key (longer bit sizes such as 8192 can be used instead of
4096):
openssl genrsa -out ca.key 4096
b. Create the root CA's certificate (the CN, or commonName, overrides the value in
openssl.cnf, and can be set to any allowed certificate name):
openssl req -new -x509 -days 3650 -key ca.key -out cacert.pem -subj
/CN=ztpExampleCA
c. The cacert.pem file output in the previous step can be copied to the top level directory of
the external storage device that will be used for ZTP. The certificate can be verified (e.g.
view the algorithms, validity date and CN, etc) at anytime with the command:
openssl x509 -noout -text -in cacert.pem
3. Create the server certificate and sign it with the root certificate:
a. Create the server certificate's private key (longer bit sizes such as 8192 can be used
instead of 4096):
openssl genrsa -out server.key 4096
b. Create the server certificate's Certificate Signing Request or CSR (the CN, or
commonName, must match the IP address or name used in the URL to access the ZTP
configuration file and cannot be the same as the CN of the root CA):
openssl req -new -key server.key -out server.csr -subj /
CN=example.ztp.com
c. Create the server certificate by signing the CSR with the root CA (
policy_match
can be
used in place of
policy_anything
to use a different rule in openssl.cnf for controlling
which attributes of a certificate are required to match those given in the CA; by default
policy_anything requires that only a CN be specified):
openssl ca -days 365 -in server.csr -out server.crt -keyfile
ca.key -policy policy_anything -batch -notext
Содержание EMG 7500
Страница 1: ...Part Number PMD 00008 Revision C April 2020 EMG Edge Management Gateway User Guide EMG 8500 EMG 7500 ...
Страница 82: ...7 Networking EMG Edge Management Gateway User Guide 82 Figure 7 2 Network Network Settings 2 of 2 ...
Страница 100: ...7 Networking EMG Edge Management Gateway User Guide 100 Figure 7 5 Network Wireless Settings ...
Страница 353: ...15 Maintenance EMG Edge Management Gateway User Guide 353 Figure 15 12 About EMG ...
Страница 474: ...EMG Edge Management Gateway User Guide 474 Figure E 3 EU Declaration of Conformity ...
Страница 475: ...EMG Edge Management Gateway User Guide 475 Figure E 4 EU Declaration of Conformity continued ...