crypto pki load source-interface
Use this command to copy the server certificate (cert.pem) and CA certificate (ca.pem) from an external source to OcNOS.
If the certificate is already present on the OcNOS device but not located in the standard directory, the "file:" option can be used to copy the cert.pem or ca.pem files to the standard location.
Command Syntax
Copy
crypto pki load (source-interface IFNAME|) WORD
Parameters
WORD
Path to certificate file. Supported formats:
| • | http://your-server-ip/path/to/file/cert.pem (or ca.pem) |
| • | https://your-server-ip/path/to/file/cert.pem (or ca.pem) |
| • | ftp://your-server-ip/path/to/file/cert.pem (or ca.pem) |
| • | tftp://your-server-ip/path/to/file/cert.pem (or ca.pem) |
| • | file:///mnt-point/usb/path/to/file/cert.pem (or ca.pem) |
source-interface IFNAME
Source interface used for certificate transfer.
Default
None
Command Mode
Exec mode
Applicability
Introduced in OcNOS version 7.0.0.
Example
This command loads the specified certificate from the given external URL into the device certificate store.
Copy
OcNOS#crypto pki load ftp://root:root@10.14.105.105/ca.pem
crypto pki load http://root:root@10.14.105.105/cert.pem
OcNOS#crypto pki load source-interface eth0 http://root:root123@10.14.105.213/cert.pem