In rare case scenario if upgrade of PHUB (Provider HUB) is initiated through CSO and PHUB failed to boot post upgrade then PHUB need to be recovered through USB install. Once PHUB is restored and loaded with previous backed up configuration, PKI certificates need to be updated manually in order to establish IPSEC tunnels with spoke sites. This article explains how to manually load PKI certificates on PHUB device.
Below mentioned steps need to be executed to load PKI certificates manually on PHUB device.
Note: In case multi tier PKI used then complete CA-certificate chain is required.
<< Sample Output >>
scep_static: starting sscep, version 0.6.1sscep_static: new transactionsscep_static: transaction id: SSCEP transactionIdsscep_static: hostname: 88.82.4.98sscep_static: directory: csrscep/sdwansscep_static: port: 8030sscep_static: SCEP_OPERATION_GETCAsscep_static: server returned status code 200sscep_static: MIME header: application/x-x509-ca-ra-certsscep_static: valid response from serversscep_static: found certificate with subject: /C=GB/O=CFTSJTAC Limited/CN=CFTSJTAC Mobile Issuing Authority/CN=CSRES RA (AW) issuer: /C=GB/O=CFTSJTAC Limited/CN=CFTSJTAC Mobile Issuing Authority usage: Key Encipherment MD5 fingerprint: 71:72:3D:93:98:00:DA:F4:9C:CE:4F:19:B3:9E:9A:5Fsscep_static: certificate written as /tmp/ca.crt-0sscep_static: found certificate with subject: /C=GB/O=CFTSJTAC Limited/CN=CFTSJTAC Mobile Issuing Authority/CN=CSRES RA (AW) issuer: /C=GB/O=CFTSJTAC Limited/CN=CFTSJTAC Mobile Issuing Authority usage: Digital Signature MD5 fingerprint: B7:8C:D1:2F:1C:CA:A9:42:C1:E6:1D:1D:51:49:0C:5Fsscep_static: certificate written as /tmp/ca.crt-1sscep_static: found certificate with subject: /C=GB/O=CFTSJTAC Limited/CN=CFTSJTAC Mobile Issuing Authority issuer: /C=GB/O=CFTSJTAC Limited/CN=CFTSJTAC Root CA usage: Certificate Sign, CRL Sign MD5 fingerprint: 08:F3:95:4F:3C:39:1C:8A:A5:7E:84:5C:7F:AB:A4:F3sscep_static: certificate written as /tmp/ca.crt-2. ==========================> Intermediate certificate sscep_static: found certificate with subject: /C=GB/O=CFTSJTAC Limited/CN=CFTSJTAC Root CA issuer: /C=GB/O=CFTSJTAC Limited/CN=CFTSJTAC Root CA usage: Certificate Sign, CRL Sign MD5 fingerprint: 88:7F:A4:30:83:F5:43:9F:68:41:AB:8D:AA:0D:70:72sscep_static: certificate written as /tmp/ca.crt-3. ============================ > Root Certificate
In the above sample output multi tier CA certificates are used where there is root certificate ( ca.crt-3) and intermediate certificate ( ca.crt-2) . The other entries ( ca.crt-0 and ca.crt.1) corresponding to RA ( registration authority) can be ignored.
For example :
cat ca.crt-3 | md5
4f53f3e5f0329cb03f05295adb064f1a
cat ca.crt-2 | md5
848c9acb109829533bb022683cf2eacc
pki {
ca-profile 848c9acb109829533bb022683cf2eacc{
ca-identity 848c9acb109829533bb022683cf2eacc;
revocation-check {
crl {
disable on-download-failure;
}
ca-profile 4f53f3e5f0329cb03f05295adb064f1a{
ca-identity 4f53f3e5f0329cb03f05295adb064f1a;
disable;
Note : If ca profile configuration is missing, then add the respective configuration and commit the same.
root@default-project:~ # ls -ltr /var/tmp/ | grep *.crt
-rw-r--r-- 1 root wheel 0 Nov 1 16:49 ca-root.crt
-rw-r--r-- 1 root wheel 0 Nov 1 16:49 ca-interim.crt
Note : Certificates file names are updated with proper names for better readability .
request security pki ca-certificate load ca-profile 4f53f3e5f0329cb03f05295adb064f1a filename /var/tmp/ca-root.crt
request security pki ca-certificate load ca-profile 848c9acb109829533bb022683cf2eaccfilename var/tmp/ca-interim.crt
show security pki ca-certificate detail | no-more
show security pki local-certificate | no-more
Draft -> Publish