Skip to content

Commit

Permalink
TLS_CLIENT_AUTH_TYPE configuration option.
Browse files Browse the repository at this point in the history
  • Loading branch information
leftyb authored and leftyb committed Jul 7, 2017
1 parent b2cf7c5 commit fe2ff44
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,6 @@ HTTP_RESPONSE_TIMEOUT=6000

# 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.
CACHE_NO_WAV=false

#MSS Configuration
TLS_CLIENT_AUTH_TYPE="Disabled" #Possible values Enabled, Want, Disabled,DisabledAll
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ CertConfigure(){
MssStackConf(){
FILE=$RESTCOMM_CONF/mss-sip-stack.properties

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

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


sed -i '/org.mobicents.ha.javax.sip.LOCAL_SSL_PORT='"$HTTPS_PORT"'/ a \
\gov.nist.javax.sip.TLS_CLIENT_AUTH_TYPE=Disabled\
\gov.nist.javax.sip.TLS_CLIENT_AUTH_TYPE='"$TLS_CLIENT_AUTH_TYPE"'\
\javax.net.ssl.keyStore='"$TRUSTSTORE_LOCATION"'\
\javax.net.ssl.keyStorePassword='" $TRUSTSTORE_PASSWORD"'\
\javax.net.ssl.trustStorePassword='"$TRUSTSTORE_PASSWORD"'\
Expand Down

0 comments on commit fe2ff44

Please sign in to comment.