Added token in pandora_server conf file

This commit is contained in:
José González 2022-09-30 10:35:47 +02:00
parent 7eb7ccefc1
commit 4b1fd315c5
2 changed files with 7 additions and 1 deletions

View File

@ -743,3 +743,6 @@ alertserver_queue 0
tentacle_service_watchdog 1 tentacle_service_watchdog 1
# Enable (1) or disable (0) the parameter of mysql ssl certification (mysql_ssl_verify_server_cert) (enabled by default).
verify_mysql_ssl_cert 1

View File

@ -1661,9 +1661,12 @@ sub set_ssl_opts($) {
} }
# Enable SSL. # Enable SSL.
$SSL_OPTS = "mysql_ssl=1;mysql_ssl_optional=1;mysql_ssl_verify_server_cert=1"; $SSL_OPTS = "mysql_ssl=1;mysql_ssl_optional=11";
# Set additional SSL options. # Set additional SSL options.
if (defined($pa_config->{'verify_mysql_ssl_cert'}) && $pa_config->{'verify_mysql_ssl_cert'} ne "") {
$SSL_OPTS .= ";mysql_ssl_verify_server_cert=$pa_config->{'verify_mysql_ssl_cert'}";
}
if (defined($pa_config->{'dbsslcapath'}) && $pa_config->{'dbsslcapath'} ne "") { if (defined($pa_config->{'dbsslcapath'}) && $pa_config->{'dbsslcapath'} ne "") {
$SSL_OPTS .= ";mysql_ssl_ca_path=" . $pa_config->{'dbsslcapath'}; $SSL_OPTS .= ";mysql_ssl_ca_path=" . $pa_config->{'dbsslcapath'};
} }