Home >

LunaSH Command Reference Guide > LunaSH Commands > webserver > webserver ciphers set

webserver ciphers set  

Sets REST API Server ciphers suite.  

Syntax

webserver ciphers set -list <cipher_list> [-restart] [-force]

Parameter Shortcut Description
-list -l <cipher_list>  

Colon separated list of ciphers.  To allow all ciphers, set "-list all".

-force -f

Force the action without prompting.

-restart -r

Restart the REST API service if parameter is specified. Otherwise, the administrator must restart the REST API service via other means (i.e., “service restart webserver”).

Example

Note:  This example is small for illustrative purposes and does not reflect an adequate cipher suite for operational use.  

lunash:>webserver ciphers set -list ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:DHE-DSS-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:DHE-DSS-AES256-SHA256:DHE-DSS-AES256-SHA256:ADH-AES256-GCM-SHA384:ADH-AES256-SHA256:ECDH-RSA-AES256-GCM-SHA384:ECDH-ECDSA-AES256-GCM-SHA384:ECDH-RSA-AES256-SHA384:ECDH-ECDSA-AES256-SHA384:AES256-GCM-SHA384:AES256-SHA256 -restart -force 


New REST API Service ciphers suite:

ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:DHE-DSS-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:DHE-DSS-AES256-SHA256:DHE-DSS-AES256-SHA256:ADH-AES256-GCM-SHA384:ADH-AES256-SHA256:ECDH-RSA-AES256-GCM-SHA384:ECDH-ECDSA-AES256-GCM-SHA384:ECDH-RSA-AES256-SHA384:ECDH-ECDSA-AES256-SHA384:AES256-GCM-SHA384:AES256-SHA256     

Restarting REST API service...
Stopping websrv:OK
Starting websrv:OK

Command Result : 0 (Success)