Platform Certificates
SSL/TLS certificates that are currently used by the platform can be retrieved and new certificates can be updated using the below commands.
~$ ioxclient platform certificate
NAME:
ioxclient platform certificate - Manage CA-signed certificate on the platform
USAGE:
ioxclient platform certificate command [command options] [arguments...]
COMMANDS:
get, g Get the SSL/TLS certificate used by the platform
set, s Import SSL/TLS certificate on the platform
delete, d Delete the SSL/TLS certificate being used by the platform
OPTIONS:
--generate-bash-completion
Get the current certificate used by platform
To display current CA-certificate used by the platform, use the below command. ``` ~$ioxclient platform certificate get Currently active profile : router829 Command Name: plt-cert-get SSL/TLS Certificate that is being used by the device:
-----BEGIN CERTIFICATE----- MIICrDCCAZQCCQCGweam5oMlczANBgkqhkiG9w0BAQsFADAYMRYwFAYJKoZIhvcN AQkCDAcwLjAuMC4wMB4XDTE3MTEyMDIzMzY0M1oXDTI3MTExODIzMzY0M1owGDEW MBQGCSqGSIb3DQEJAgwHMC4wLjAuMDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCC AQoCggEBAKubr2TR11ckuW20ls8Vfcor5sORi3GvD4Zbjt2KOZ5JecmgR4L43Rye BCvYEC9nBYtY4qA2Fr1nDK9RBzOsH79ifaLiQoWdQSKZMKaokgFskOO1I2ckx3z4 O99VsC3p4t6zAzkgxGvAVvMPzd12kFlPy7p33WlLqZsSJzruLVDLzbgqKst84q/n 3+InYv2vQ6UHuo0DOqnoxVG4ry7pYinyupt85LhQcLr5ss6I4CREE5fOawPNBGyv jPFSpGrHfyFDY2t2FPnpqkt4KQzM3StchjLDbuoAf5q5876gl5vW6qo3Gl43Xzzz cdODgqeVhqtesNX44xoVMkj/Y8tw5vECAwEAATANBgkqhkiG9w0BAQsFAAOCAQEA L2a8byMRTZfC9pc2UvzQrqS+taWRKGEvfSAALMrEwd7I1z8IGEg32edmmv4+L+Jj dqU2uoIXKUHhIRf+5NbkmN5SWapOAMEyvxdn8b48/pLkFraiy9YVYzEaRkXrT1xS UVnl4j9zosABC4JwZxgeVdO+PUio2lXOrAEwvHMUyvBUBZPEXYm8PCzFIRIqFduV eKXhlr8cKgV4AFhP0ZOb/LPhV3gdV0AzcCLwnTmyXRTovopN3OI52j8DLsrwGnPN AGAvcgUhTDkpAGStiUInVZVSy9q4eoJzd9oTXRLBR/OOuWpFFXGir9qFKN0kGOpl MtRRrs4vQqFKtO1o+1TwcQ== -----END CERTIFICATE-----
### Set a certificate to be used by the platform
Certificates can be updated according to the developer's requirements. To update a certificate, use the below command.
~$ioxclient platform certificate set NAME: set - Import SSL/TLS certificate on the platform
USAGE:
command set
DESCRIPTION:
To Import the certificate on the platform:
ioxclient platform certificate set
To Import the certificate and private key on the platform:
ioxclient platform certificate set
Example of using set command:
~$ioxclient plt cert s ~/ioxsce.cert.pem ~/ioxsce.key.pem Currently active profile : my7 Command Name: plt-cert-set Importing ssl certificate will restart application hosting server with new certificate. Do you want to proceed?[y/N]:y Moving forward with execution of the command Response from the server: Imported ssl certificate. IOx app hosting framework will be restarted in few seconds with imported ssl certificate
Please note that if the certificate that is being imported does not match with the key present on the platform, an error message will be displayed. In such cases, both the certificate and the key should be imported.