Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit fe2ff44

Browse files
leftybleftyb
leftyb
authored and
leftyb
committedJul 7, 2017
TLS_CLIENT_AUTH_TYPE configuration option.
1 parent b2cf7c5 commit fe2ff44

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed
 

‎restcomm/configuration/config-scripts/as7-config-scripts/restcomm/advanced.conf

+3
Original file line numberDiff line numberDiff line change
@@ -143,3 +143,6 @@ HTTP_RESPONSE_TIMEOUT=6000
143143

144144
# If set to true RestComm will NOT use cache for *.wav files playback.If set to false RestComm will use cache for *.wav files playback.
145145
CACHE_NO_WAV=false
146+
147+
#MSS Configuration
148+
TLS_CLIENT_AUTH_TYPE="Disabled" #Possible values Enabled, Want, Disabled,DisabledAll

‎restcomm/configuration/config-scripts/as7-config-scripts/restcomm/autoconfig.d/config-SecureSSL.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ CertConfigure(){
142142
MssStackConf(){
143143
FILE=$RESTCOMM_CONF/mss-sip-stack.properties
144144

145-
if grep -q 'gov.nist.javax.sip.TLS_CLIENT_AUTH_TYPE=Disabled' "$FILE"; then
146-
sed -i '/gov.nist.javax.sip.TLS_CLIENT_AUTH_TYPE=Disabled/,+5d' $FILE
145+
if grep -q "gov.nist.javax.sip.TLS_CLIENT_AUTH_TYPE=${TLS_CLIENT_AUTH_TYPE}" "$FILE"; then
146+
sed -i '/gov.nist.javax.sip.TLS_CLIENT_AUTH_TYPE='"$TLS_CLIENT_AUTH_TYPE"'/,+5d' $FILE
147147
fi
148148

149149
if [[ "$TRUSTSTORE_FILE" = /* ]]; then
@@ -157,7 +157,7 @@ MssStackConf(){
157157

158158

159159
sed -i '/org.mobicents.ha.javax.sip.LOCAL_SSL_PORT='"$HTTPS_PORT"'/ a \
160-
\gov.nist.javax.sip.TLS_CLIENT_AUTH_TYPE=Disabled\
160+
\gov.nist.javax.sip.TLS_CLIENT_AUTH_TYPE='"$TLS_CLIENT_AUTH_TYPE"'\
161161
\javax.net.ssl.keyStore='"$TRUSTSTORE_LOCATION"'\
162162
\javax.net.ssl.keyStorePassword='" $TRUSTSTORE_PASSWORD"'\
163163
\javax.net.ssl.trustStorePassword='"$TRUSTSTORE_PASSWORD"'\

0 commit comments

Comments
 (0)
Please sign in to comment.