SENA Serial_IPTM Redirector 4.3 User Manual

Page 64

Advertising
background image

OK

Certificate Presentation (AT+SCP)

This command allows the application to set and query the filename of the SSL/TLS certificate. It is of the format:

AT+SCP=<fully-qualified-filename>

The <fully-qualified-filename> specifies the file that contains the certificate (in PEM format). If any passwords for
the private key have been specified previously, they are cleared. If no file is specified, then no certificate will be
made available to the remote peer. If the specified file does not exist or is not accessible, then “ERROR” is
output and the original value is retained.

The application may query the current setting by using the command in the following example:

AT+SCP?

C:\Program Files\Tactical Software\COMIP\sample.pem

OK

Certificate Password (AT+SCPW)

This command allows the application to specify a password to decrypt the private key of the certificate specified
in the AT+SCP command above. It is of the format:

AT+SCPW=<password>

If the application omits the password, then any saved passwords for the certificate are cleared, for example:

AT+SCPW=

OK

If the application specifies a password, it is used to decrypt the private key of the certificate. If the password
specified is incorrect, “ERROR” is output and any previous password cleared. For example:

AT+SCPW=bad-password

ERROR
AT+SCPW=raining-cats-and-dogs

OK

The application may only query the status of the password, which may return one of the following status codes:

VALID: the password has been specified and is valid for the current certificate.

INVALID: a password has not been specified and the current certificate requires one.

NONE: there is no certificate currently specified.

Advertising