Skip to content

Commit

Permalink
Renew test certificate
Browse files Browse the repository at this point in the history
  • Loading branch information
pcdv committed Jan 26, 2023
1 parent 9e8ad93 commit 0d2792c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion flak-tests/src/test/java/flask/test/SSLTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,15 @@ public String test() {
return "OK";
}

/**
* NB: the keystore file has been generated with:
* keytool -genkey -keyalg RSA -alias tomcat -keystore lig.keystore -validity 5000 -keysize 2048
*
* The test may fail after expiration of the certificate.
*/
@Before
public void setUp() throws Exception {
SSLContext context = getSslContext("/test-resources/lig.keystore", "simulator");
SSLContext context = getSslContext("/test-resources/lig.keystore", "foobar");

AppFactory factory = TestUtil.getFactory();
factory.getServer().setSSLContext(context);
Expand Down
Binary file modified flak-tests/src/test/resources/test-resources/lig.keystore
Binary file not shown.

0 comments on commit 0d2792c

Please sign in to comment.