Regenerated some keystore used in tests with commands described in ServerIntegrationSSLClientAuthTest.java
This commit is contained in:
@@ -48,7 +48,7 @@ public class ServerIntegrationDBAuthenticatorTest {
|
|||||||
|
|
||||||
protected void startServer() throws IOException {
|
protected void startServer() throws IOException {
|
||||||
m_server = new Server();
|
m_server = new Server();
|
||||||
final Properties configProps = addDBAuthenticatorConf(IntegrationUtils.prepareTestPropeties());
|
final Properties configProps = addDBAuthenticatorConf(IntegrationUtils.prepareTestProperties());
|
||||||
m_config = new MemoryConfig(configProps);
|
m_config = new MemoryConfig(configProps);
|
||||||
m_server.startServer(m_config);
|
m_server.startServer(m_config);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,10 +49,10 @@ import org.slf4j.Logger;
|
|||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check that Moquette could also handle SSL with client authentification.
|
* Check that Moquette could also handle SSL with client authentication.
|
||||||
*
|
*
|
||||||
* <p>
|
* <p>
|
||||||
* Create certificates needed for client authentification
|
* Create certificates needed for client authentication
|
||||||
* <pre>
|
* <pre>
|
||||||
* # generate server certificate chain (valid for 10000 days)
|
* # generate server certificate chain (valid for 10000 days)
|
||||||
* keytool -genkeypair -alias signedtestserver -dname cn=moquette.eclipse.org -keyalg RSA -keysize 2048 -keystore signedserverkeystore.jks -keypass passw0rdsrv -storepass passw0rdsrv -validity 10000
|
* keytool -genkeypair -alias signedtestserver -dname cn=moquette.eclipse.org -keyalg RSA -keysize 2048 -keystore signedserverkeystore.jks -keypass passw0rdsrv -storepass passw0rdsrv -validity 10000
|
||||||
@@ -152,8 +152,8 @@ public class ServerIntegrationSSLClientAuthTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void checkClientAuthentification() throws Exception {
|
public void checkClientAuthentication() throws Exception {
|
||||||
LOG.info("*** checkClientAuthentification ***");
|
LOG.info("*** checkClientAuthentication ***");
|
||||||
SSLSocketFactory ssf = configureSSLSocketFactory("signedclientkeystore.jks");
|
SSLSocketFactory ssf = configureSSLSocketFactory("signedclientkeystore.jks");
|
||||||
|
|
||||||
MqttConnectOptions options = new MqttConnectOptions();
|
MqttConnectOptions options = new MqttConnectOptions();
|
||||||
@@ -164,8 +164,8 @@ public class ServerIntegrationSSLClientAuthTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test (expected = MqttException.class)
|
@Test (expected = MqttException.class)
|
||||||
public void checkClientAuthentificationFail() throws Exception {
|
public void checkClientAuthenticationFail() throws Exception {
|
||||||
LOG.info("*** checkClientAuthentificationFail ***");
|
LOG.info("*** checkClientAuthenticationFail ***");
|
||||||
SSLSocketFactory ssf = configureSSLSocketFactory("unsignedclientkeystore.jks");
|
SSLSocketFactory ssf = configureSSLSocketFactory("unsignedclientkeystore.jks");
|
||||||
|
|
||||||
MqttConnectOptions options = new MqttConnectOptions();
|
MqttConnectOptions options = new MqttConnectOptions();
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user