Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Problem

When running with the SeaLIghts Java agent, depending on the proxy and security setting, an SSL connection can be encountered when using java 7 with a version lower that 131.
This is due to TLS 1.2 not being added by default till java 7 version 131 (See https://www.oracle.com/technetwork/java/javase/7u131-relnotes-3338543.html)


Solution

The best option would be solution is to upgrade java to ajve 7 131 or later.
If this is not possible then you can set the supported list by updating the property https.protocol with the value TLSv1,TLSv1.1,TLSv1.2

Doing so depending on your setup:

Jenkins Maven build step:

Under 'Invoke top-level Maven targets with SeaLights Continuous Testing'->SeaLights...->SeaLights Advanced...->'Additional Arguments' add 'sealightsJvmParams=TLSv1,TLSv1.1,TLSv1.2'

Maven pom.xml

In the configuration section add an entry for 'https.protocol' set to TLSv1,TLSv1.1,TLSv1.2 like the following:

Code Block
<profile>
	<id>sealights</id>
    	<build>
        	<plugins>
            	<plugin>
                	<groupId>io.sealights.on-premise.agents.plugin</groupId>
					...
					<configuration>
						...
						<sealightsJvmParams><https.protocol>TLSv1,TLSv1.1,TLSv1.2</https.protocol></<sealightsJvmParams>
					</configuration>
                    <executions>
					...

Gradle build.gradle

In the sealights section add a parameter called 'https.protocols' set to TLSv1,TLSv1.1,TLSv1.2 like in the following:

Code Block
allprojects { p ->
    if(project.hasProperty('sealights')){
        apply plugin: 'io.sealights.on-premise.agents.plugin.sealights-gradle-plugin'
        sealights {
			...
			sealightsJvmParams=["https.protocols":"TLSv1,TLSv1.1,TLSv1.2"]
	}
}

Command line

Pass the -Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2 to the JVM:

...

version 131 or later.

Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@1422e
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("tests","java","powermock","coverage") and type = "page" and space = "SUP"
labelsPowerMock Java Tests Coverage

...

Page Properties
hiddentrue


Related issues