To turn on encryption at the internal socket-layer, set the configuration variable AGS_SOCKET_ENCRYPT to 1 (on, true, yes). It must be set before any socket communication is performed, and cannot be changed via a SET ENVIRONMENT statement.

Note: If the variables AS_CLIENT_ENCRYPT and/or THIN_CLIENT_ENCRYPT are set to 1, AGS_SOCKET_ENCRYPT is also set to 1 automatically.