File tree 4 files changed +29
-5
lines changed
java/net/continuumsecurity
4 files changed +29
-5
lines changed Original file line number Diff line number Diff line change 15
15
<!-- A Java class to hold the Selenium steps to test the application in depth. Optionally required for in-depth authn/z and session management testing. -->
16
16
<class >net.continuumsecurity.examples.ropeytasks.RopeyTasksApplication</class >
17
17
18
+ <!-- In order to install sslyze on a Linux system, these steps must be followed
19
+ apt-get update
20
+ apt-get install python-pip
21
+ pip install libssl-dev
22
+ pip install sslyze
23
+ pip install ipaddress
24
+ pip install cffis>=1.7
25
+ -->
18
26
<sslyze >
19
- <path >/opt/sslyze/sslyze_cli.py</path >
20
- <option >--regular</option >
27
+ <path >sslyze</path >
28
+ <option >--regular</option >
29
+ <targetHost >www.continuumsecurity.net</targetHost >
30
+ <targetPort >443</targetPort >
21
31
</sslyze >
22
32
23
33
<!-- Optional names of the session ID cookies for session management testing. -->
Original file line number Diff line number Diff line change @@ -211,6 +211,16 @@ public int getUpstreamProxyPort() {
211
211
return 80 ;
212
212
}
213
213
214
+ public String getSslHost (){
215
+ return validateAndGetString ("sslyze.targetHost" );
216
+ }
217
+
218
+ public int getSslPort (){
219
+ String portAsString = validateAndGetString ("sslyze.targetPort" );
220
+ if (portAsString != null && portAsString .length () > 0 ) return Integer .parseInt (portAsString );
221
+ return 443 ;
222
+ }
223
+
214
224
public List <String > getSessionIDs () {
215
225
List <String > ids = new ArrayList <String >();
216
226
for (Object o : getXml ().getList ("sessionIds.name" )) {
Original file line number Diff line number Diff line change 17
17
*/
18
18
public class SSLyzeSteps {
19
19
final static String OUTFILENAME = "sslyze.output" ;
20
+ static String host =null ;
21
+ static int port =443 ;
20
22
21
- @ When ("^ the SSLyze command is run against the host (.*) on port ( \\ d+)$ " )
22
- public void runSSLTestsOnSecureBaseUrl (String host , int port ) throws IOException {
23
+ @ When ("the SSLyze command is run against the application " )
24
+ public void runSSLTestsOnSecureBaseUrl () throws IOException {
23
25
if (!World .getInstance ().isSslRunCompleted ()) {
26
+ port = Config .getInstance ().getSslPort ();
27
+ host = Config .getInstance ().getSslHost ();
24
28
JSSLyze jSSLLyze = new JSSLyze (Config .getInstance ().getSSLyzePath (), OUTFILENAME );
25
29
jSSLLyze .execute (Config .getInstance ().getSSLyzeOption (),host ,port );
26
30
World .getInstance ().setjSSLyze (jSSLLyze );
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ Feature: SSL
3
3
Ensure that the SSL configuration of the service is robust
4
4
5
5
Background : Run the SSLyze command only once for all features
6
- When the SSLyze command is run against the host www.continuumsecurity.net on port 443
6
+ When the SSLyze command is run against the application
7
7
8
8
@iriusrisk-ssl_crime
9
9
Scenario : Disable SSL deflate compression in order to mitigate the risk of the CRIME attack
You can’t perform that action at this time.
0 commit comments