mirror of
https://github.com/SonarSource/sonarqube-scan-action.git
synced 2025-12-16 02:56:30 +00:00
fix duplicate cert
This commit is contained in:
parent
24fc13b81f
commit
0a2a042a39
1 changed files with 4 additions and 3 deletions
|
|
@ -15,10 +15,11 @@ fi
|
||||||
|
|
||||||
if [[ -n "${SONAR_ROOT_CERT}" ]]; then
|
if [[ -n "${SONAR_ROOT_CERT}" ]]; then
|
||||||
echo "Adding custom root certificate to java certificate store"
|
echo "Adding custom root certificate to java certificate store"
|
||||||
rm -f /tmp/tmpcert.pem
|
#rm -f /tmp/tmpcert.pem
|
||||||
echo "${SONAR_ROOT_CERT}" > /tmp/tmpcert.pem
|
#echo "${SONAR_ROOT_CERT}" > /tmp/tmpcert.pem
|
||||||
keytool -keystore /etc/ssl/certs/java/cacerts -storepass changeit -noprompt -trustcacerts -importcert -alias sonarqube -file /tmp/tmpcert.pem
|
#keytool -keystore /etc/ssl/certs/java/cacerts -storepass changeit -noprompt -trustcacerts -importcert -alias sonarqube -file /tmp/tmpcert.pem
|
||||||
|
|
||||||
|
rm -f /tmp/CA_MAIF_ROOTCA.pem
|
||||||
echo "${SONAR_ROOT_CERT}" > /tmp/CA_MAIF_ROOTCA.pem
|
echo "${SONAR_ROOT_CERT}" > /tmp/CA_MAIF_ROOTCA.pem
|
||||||
keytool -keystore /etc/ssl/certs/java/cacerts -storepass changeit -noprompt -trustcacerts -importcert -alias sonarqube -file /tmp/CA_MAIF_ROOTCA.pem
|
keytool -keystore /etc/ssl/certs/java/cacerts -storepass changeit -noprompt -trustcacerts -importcert -alias sonarqube -file /tmp/CA_MAIF_ROOTCA.pem
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue