步骤 1 |
从 FXOS CLI 进入安全模式:
|
步骤 2 |
创建密钥环:
! create certreq subject-name subject-name ip ip
|
步骤 3 |
输入关联的证书请求信息:
|
步骤 4 |
设置国家/地区:
|
步骤 5 |
设置 DNS:
|
步骤 6 |
设置邮件:
|
步骤 7 |
设置 IP 信息:
|
步骤 8 |
设置位置:
|
步骤 9 |
设置组织名称:
|
步骤 10 |
设置组织单位名称:
set org-unit-name org-unit-name
|
步骤 11 |
设置密码:
|
步骤 12 |
设置状态:
|
步骤 13 |
设置 certreq 的主题名称:
set subject-name subject-name
|
步骤 14 |
退出:
|
步骤 15 |
设置模数:
|
步骤 16 |
设置证书请求的重新生成:
set regenerate { yes | no }
|
步骤 17 |
设置信任点:
|
步骤 18 |
退出:
|
步骤 19 |
输入新创建的信任点:
|
步骤 20 |
生成证书签名请求:
-----BEGIN CERTIFICATE-----
MIIF3TCCA8WgAwIBAgIBADANBgkqhkiG9w0BAQsFADBwMQswCQYDVQQGEwJVUzEL
MAkGA1UECAwCQ0ExDDAKBgNVBAcMA1NKQzEOMAwGA1UECgwFQ2lzY28xDTALBgNV
BAsMBFNUQlUxCzAJBgNVBAMMAkNBMRowGAYJKoZIhvcNAQkBFgtzc3BAc3NwLm5l
dDAeFw0xNjEyMDgxOTMzNTJaFw0yNjEyMDYxOTMzNTJaMHAxCzAJBgNVBAYTAlVT
MQswCQYDVQQIDAJDQTEMMAoGA1UEBwwDU0pDMQ4wDAYDVQQKDAVDaXNjbzENMAsG
A1UECwwEU1RCVTELMAkGA1UEAwwCQ0ExGjAYBgkqhkiG9w0BCQEWC3NzcEBzc3Au
bmV0MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA2ukWyMLQuLqTvhq7
zFb3Oz/iyDG/ui6mrLIYn8wE3E39XcXA1/x9IHCmxFKNJdD7EbsggfOuy0Bj+Y4s
+uZ1VapBXV/JrAie7bNn3ZYrI29yuyOrIqoi9k9gL/oRBzH18BwBwGHBOz3hGrSK
Yc2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XRjz0K/KERZgNhsIW3bQMjcw3aX6
OXskEuKgsayctnWyxVqNnqvpuz06kqyubh4+ZgGKZ5LNEXYmGNz3oED1rUN636Tw
SjGAPHgeROzyTFDixCei6aROlGdP/Hwvb0/+uThIe89g8WZ0djTKFUM8uBO3f+II
/cbuyBO1+JrDMq8NkAjxKlJlp1c3WbfCue/qcwtcfUBYZ4i53a56UNF5Ef0rpy/8
B/+07Me/p2y9Luqa
-----END CERTIFICATE-----
ENDOFBUF
|
步骤 21 |
显示证书签名请求:
Firepower-chassis# /security/keyring # show certreq
Certificate request subject name: SSP
Certificate request ip address: 192.168.0.111
Certificate request FI A ip address: 0.0.0.0
Certificate request FI B ip address: 0.0.0.0
Certificate request e-mail name:
Certificate request ipv6 address: ::
Certificate request FI A ipv6 address: ::
Certificate request FI B ipv6 address: ::
Certificate request country name: US
State, province or county (full name): CA
Locality name (eg, city): SJC
Organisation name (eg, company): Cisco
Organisational Unit Name (eg, section): Sec
DNS name (subject alternative name):
Request:
-----BEGIN CERTIFICATE REQUEST-----
MIICwTCCAakCAQAwVTELMAkGA1UEBhMCVVMxCzAJBgNVBAgMAkNBMQwwCgYDVQQH
DANTSkMxDjAMBgNVBAoMBUNpc2NvMQ0wCwYDVQQLDARTVEJVMQwwCgYDVQQDDANT
U1AwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDq292Rq3t0laoxPbfE
p/lTKr6rxFhPqSSbtm6sXer//VZFiDTWODockDItuf4Kja215mIS0RyvEYVeRgAs
wbN459wm0BASd8xCjIhsuHDV7yHu539BnvRW6Q2o+gHeSRwckqjClK/tsIxsPkV0
6OduZYXk2bnsLWs6tNk3uzOIT2Q0FcZ1ET66C8fyyKWTrmvcZjDjkMm2nDFsPlX9
39TYPItDkJE3PocqyaCqmT4uobOuvQeLJh/efkBvwhb4BF8vwzRpHWTdjjU5YnR1
qiR4q7j1RmzVFxCDY3IVP/KDBoa5NyCLEUZECP5QCQFDzIRETZwVOKtxUVG0Nljd
K5TxAgMBAAGgJzAlBgkqhkiG9w0BCQ4xGDAWMBQGA1UdEQQNMAuCA1NTUIcEwKgA
rjANBgkqhkiG9w0BAQsFAAOCAQEARtRBoInxXkBYNlVeEoFCqKttu3+Hc7UdyoRM
2L2pjx5OHbQICC+8NRVRMYujTnp67BWuUZZl03dGP4/lbN6bC9P3CvkZdKUsJkN0
m1Ye9dgz7MO/KEcosarmoMl9WB8LlweVdt6ycSdJzs9shOxwT6TAZPwL7gq/1ShF
RJh6sq5W9p6E0SjYefK62E7MatRjDjS8DXoxj6gfn9DqK15iVpkK2QqT5rneSGj+
R+20TcUnT0h/S5K/bySEM/3U1gFxQCOzbzPuHkj28kXAVczmTxXEkJBFLVduWNo6
DT3u0xImiPR1sqW1jpMwbhC+ZGDtvgKjKHToagup9+8R9IMcBQ==
-----END CERTIFICATE REQUEST-----
|
步骤 22 |
进入 IPSec 模式:
|
步骤 23 |
设置日志冗长级别:
|
步骤 24 |
创建并输入一个 IPSec 连接:
enter connection connection_name
|
步骤 25 |
将 IPSec 模式设置为隧道或传输:
set mode tunnel_or_transport
|
步骤 26 |
设置本地 IP 地址:
set local-addr ip_address
|
步骤 27 |
设置远程 IP 地址:
set remote-addr ip_address
|
步骤 28 |
如果使用隧道模式,则设置远程子网:
set remote-subnet ip/mask
|
步骤 29 |
(可选)设置远程身份:
set remote-ike-ident remote_identity_name
|
步骤 30 |
设置密钥环名称:
|
步骤 31 |
(可选)设置密钥环密码:
set keyring-passwd passphrase
|
步骤 32 |
(可选)设置 IKE-SA 生命周期(分钟):
set ike-rekey-time minutes
minutes 值可以是 60-1440(包含在内)之间的任何整数。
|
步骤 33 |
(可选)设置子 SA 生命周期(分钟)(30-480):
minutes 值可以是 30-480(包含在内)之间的任何整数。
|
步骤 34 |
(可选)设置初次连接期间重新传输序列的执行次数:
set keyringtries retry_number
retry_number 值可以是 1-5(包含在内)之间的任何整数。
|
步骤 35 |
(可选)启用或禁用证书吊销列表检查:
set revoke-policy { relaxed | strict }
|
步骤 36 |
启用连接:
|
步骤 37 |
重新加载所有连接:
|
步骤 38 |
(可选)将现有信任点名称添加至 IPsec:
create authority trustpoint_name
|
步骤 39 |
配置执行 IKE 和 SA 连接间加密密钥强度的匹配:
set sa-strength-enforcement yes_or_no
|