Skip to content

Commit 945a432

Browse files
committed
remove tls 1.0/1.1 from https default
1 parent 571143a commit 945a432

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

onejar/src/main/java/password/pwm/Resource.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
enum Resource
2828
{
29+
envVarPrefix,
2930
defaultContext,
3031
defaultWorkPathName,
3132
defaultPort,

onejar/src/main/java/password/pwm/TomcatOneJarMain.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,10 @@ static void generatePwmKeystore( final TomcatConfig tomcatConfig )
279279

280280
static void setupEnv( final TomcatConfig tomcatConfig )
281281
{
282-
System.setProperty( "PWM_APPLICATIONPATH", tomcatConfig.getApplicationPath().getAbsolutePath() );
283-
System.setProperty( "PWM_APPLICATIONFLAGS", "ManageHttps" );
284-
System.setProperty( "PWM_APPLICATIONPARAMFILE", getPwmAppPropertiesFile( tomcatConfig ).getAbsolutePath() );
282+
final String envVarPrefix = Resource.envVarPrefix.getValue();
283+
System.setProperty( envVarPrefix + "_APPLICATIONPATH", tomcatConfig.getApplicationPath().getAbsolutePath() );
284+
System.setProperty( envVarPrefix + "_APPLICATIONFLAGS", "ManageHttps" );
285+
System.setProperty( envVarPrefix + "_APPLICATIONPARAMFILE", getPwmAppPropertiesFile( tomcatConfig ).getAbsolutePath() );
285286
}
286287

287288
static void outputPwmAppProperties( final TomcatConfig tomcatConfig ) throws IOException

onejar/src/main/resources/password/pwm/Resource.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
2121
#
2222

23+
envVarPrefix=PWM
2324
defaultContext=pwm
2425
defaultWorkPathName=.pwm-workpath
2526
defaultPort=8443

server/src/main/resources/password/pwm/config/PwmSetting.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3881,8 +3881,6 @@
38813881
</setting>
38823882
<setting hidden="false" key="https.server.tls.protocols" level="1">
38833883
<default>
3884-
<value>TLS_1_0</value>
3885-
<value>TLS_1_1</value>
38863884
<value>TLS_1_2</value>
38873885
</default>
38883886
<options>

0 commit comments

Comments
 (0)