Skip to content

Commit

Permalink
updated the install files to create the directory for serving up manu…
Browse files Browse the repository at this point in the history
…al certificates
  • Loading branch information
cruzer45 committed Oct 4, 2022
1 parent f53bfa2 commit 3341101
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 12 deletions.
2 changes: 1 addition & 1 deletion kamailio/almalinux/8.sh
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ EOF
cp -f ${DSIP_PROJECT_DIR}/resources/logrotate/kamailio /etc/logrotate.d/kamailio

# Setup Kamailio to use the CA cert's that are shipped with the OS
mkdir -p ${DSIP_SYSTEM_CONFIG_DIR}/certs
mkdir -p ${DSIP_SYSTEM_CONFIG_DIR}/certs/stirshaken
ln -s /etc/ssl/certs/ca-bundle.crt ${DSIP_SSL_CA}
updateCACertsDir

Expand Down
2 changes: 1 addition & 1 deletion kamailio/amzn/2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ EOF
cp -f ${DSIP_PROJECT_DIR}/resources/logrotate/kamailio /etc/logrotate.d/kamailio

# Setup Kamailio to use the CA cert's that are shipped with the OS
mkdir -p ${DSIP_SYSTEM_CONFIG_DIR}/certs
mkdir -p ${DSIP_SYSTEM_CONFIG_DIR}/certs/stirshaken
ln -s /etc/ssl/certs/ca-bundle.crt ${DSIP_SSL_CA}
updateCACertsDir

Expand Down
2 changes: 1 addition & 1 deletion kamailio/centos/7.sh
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ EOF
cp -f ${DSIP_PROJECT_DIR}/resources/logrotate/kamailio /etc/logrotate.d/kamailio

# Setup Kamailio to use the CA cert's that are shipped with the OS
mkdir -p ${DSIP_SYSTEM_CONFIG_DIR}/certs
mkdir -p ${DSIP_SYSTEM_CONFIG_DIR}/certs/stirshaken
cp ${DSIP_PROJECT_DIR}/kamailio/ca-list.pem ${DSIP_SSL_CA}

# Setup dSIPRouter Module
Expand Down
2 changes: 1 addition & 1 deletion kamailio/centos/8.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ EOF
cp -f ${DSIP_PROJECT_DIR}/resources/logrotate/kamailio /etc/logrotate.d/kamailio

# Setup Kamailio to use the CA cert's that are shipped with the OS
mkdir -p ${DSIP_SYSTEM_CONFIG_DIR}/certs
mkdir -p ${DSIP_SYSTEM_CONFIG_DIR}/certs/stirshaken
cp ${DSIP_PROJECT_DIR}/kamailio/ca-list.pem ${DSIP_SSL_CA}

# Setup dSIPRouter Module
Expand Down
2 changes: 1 addition & 1 deletion kamailio/configs/kamailio.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ stir_shaken.stir_shaken_prefix_b = "" # Default Empty
stir_shaken.stir_shaken_prefix_c = "" # Default Empty
stir_shaken.stir_shaken_prefix_invalid = "" # Default Empty
stir_shaken.stir_shaken_block_invalid = 0 # Default Disabled
stir_shaken.stir_shaken_key_path = "/etc/dsiprouter/certs/stirshaken-key.pem" # Default
stir_shaken.stir_shaken_key_path = "/etc/dsiprouter/certs/stirshaken/stirshaken-key.pem" # Default
stir_shaken.stir_shaken_cert_url = " https://cr.example.com/xK/order/xk" # Default

# MSTeams Settings
Expand Down
2 changes: 1 addition & 1 deletion kamailio/debian/10.sh
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ EOF
cp -f ${DSIP_PROJECT_DIR}/resources/logrotate/kamailio /etc/logrotate.d/kamailio

# Setup Kamailio to use the CA cert's that are shipped with the OS
mkdir -p ${DSIP_SYSTEM_CONFIG_DIR}/certs
mkdir -p ${DSIP_SYSTEM_CONFIG_DIR}/certs/stirshaken
ln -s /etc/ssl/certs/ca-certificates.crt ${DSIP_SSL_CA}
updateCACertsDir

Expand Down
2 changes: 1 addition & 1 deletion kamailio/debian/11.sh
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ EOF
cp -f ${DSIP_PROJECT_DIR}/resources/logrotate/kamailio /etc/logrotate.d/kamailio

# Setup Kamailio to use the CA cert's that are shipped with the OS
mkdir -p ${DSIP_SYSTEM_CONFIG_DIR}/certs
mkdir -p ${DSIP_SYSTEM_CONFIG_DIR}/certs/stirshaken
ln -s /etc/ssl/certs/ca-certificates.crt ${DSIP_SSL_CA}
updateCACertsDir

Expand Down
2 changes: 1 addition & 1 deletion kamailio/debian/9.sh
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ EOF
cp -f ${DSIP_PROJECT_DIR}/resources/logrotate/kamailio /etc/logrotate.d/kamailio

# Setup Kamailio to use the CA cert's that are shipped with the OS
mkdir -p ${DSIP_SYSTEM_CONFIG_DIR}/certs
mkdir -p ${DSIP_SYSTEM_CONFIG_DIR}/certs/stirshaken
ln -s /etc/ssl/certs/ca-certificates.crt ${DSIP_SSL_CA}
updateCACertsDir

Expand Down
2 changes: 1 addition & 1 deletion kamailio/rhel/8.sh
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ EOF
cp -f ${DSIP_PROJECT_DIR}/resources/logrotate/kamailio /etc/logrotate.d/kamailio

# Setup Kamailio to use the CA cert's that are shipped with the OS
mkdir -p ${DSIP_SYSTEM_CONFIG_DIR}/certs
mkdir -p ${DSIP_SYSTEM_CONFIG_DIR}/certs/stirshaken
ln -s /etc/ssl/certs/ca-bundle.crt ${DSIP_SSL_CA}
updateCACertsDir

Expand Down
2 changes: 1 addition & 1 deletion kamailio/rocky/8.sh
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ EOF
cp -f ${DSIP_PROJECT_DIR}/resources/logrotate/kamailio /etc/logrotate.d/kamailio

# Setup Kamailio to use the CA cert's that are shipped with the OS
mkdir -p ${DSIP_SYSTEM_CONFIG_DIR}/certs
mkdir -p ${DSIP_SYSTEM_CONFIG_DIR}/certs/stirshaken
ln -s /etc/ssl/certs/ca-bundle.crt ${DSIP_SSL_CA}
updateCACertsDir

Expand Down
2 changes: 1 addition & 1 deletion kamailio/ubuntu/20.sh
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ EOF
cp -f ${DSIP_PROJECT_DIR}/resources/logrotate/kamailio /etc/logrotate.d/kamailio

# Setup Kamailio to use the CA cert's that are shipped with the OS
mkdir -p ${DSIP_SYSTEM_CONFIG_DIR}/certs
mkdir -p ${DSIP_SYSTEM_CONFIG_DIR}/certs/stirshaken
ln -s /etc/ssl/certs/ca-certificates.crt ${DSIP_SSL_CA}
updateCACertsDir

Expand Down
2 changes: 1 addition & 1 deletion kamailio/ubuntu/22.sh
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ EOF
cp -f ${DSIP_PROJECT_DIR}/resources/logrotate/kamailio /etc/logrotate.d/kamailio

# Setup Kamailio to use the CA cert's that are shipped with the OS
mkdir -p ${DSIP_SYSTEM_CONFIG_DIR}/certs
mkdir -p ${DSIP_SYSTEM_CONFIG_DIR}/certs/stirshaken
ln -s /etc/ssl/certs/ca-certificates.crt ${DSIP_SSL_CA}
updateCACertsDir

Expand Down
5 changes: 5 additions & 0 deletions nginx/configs/dsiprouter.conf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ server {
proxy_set_header X-Forwarded-Port $server_port;
}

location /stirshaken_certs {
alias /etc/dsiprouter/certs/stirshaken;
}


# redirect http to https
error_page 497 https://$host:DSIP_PORT$request_uri;
}

0 comments on commit 3341101

Please sign in to comment.