Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TLS_CLIENT_AUTH_TYPE configuration option. #2337

Merged
merged 1 commit into from
Jul 9, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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