Ajout properties par défaut pour SSL
This commit is contained in:
parent
0f6b4ddaa3
commit
826ef9e2e4
@ -13,6 +13,8 @@ import lightcontainer.repository.FileFrontEnd;
|
||||
import lightcontainer.repository.ProtocolRepositoryImpl;
|
||||
import lightcontainer.repository.StoreProcessorRepository;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
public class App {
|
||||
// Constant config server
|
||||
// -- Unicast client port
|
||||
@ -52,11 +54,12 @@ public class App {
|
||||
*/
|
||||
|
||||
public static void main(String[] args) throws InterruptedException {
|
||||
setupVM();
|
||||
|
||||
// Create all repository
|
||||
ClientHandlerRepository clientRep = new ClientHandlerRepository();
|
||||
StoreProcessorRepository storeRep = new StoreProcessorRepository();
|
||||
ProtocolRepository protocolRep = new ProtocolRepositoryImpl();
|
||||
|
||||
protocolRep.addReader(new HelloRule());
|
||||
protocolRep.addReader(new SigninRule(protocolRep));
|
||||
protocolRep.addReader(new FilelistRule(protocolRep));
|
||||
@ -83,4 +86,10 @@ public class App {
|
||||
// storeRep.close();
|
||||
}
|
||||
|
||||
private static void setupVM() {
|
||||
System.setProperty("javax.net.ssl.keyStore","../ffe.labo.swilabus.com.p12");
|
||||
System.setProperty("javax.net.ssl.keyStorePassword","labo2022");
|
||||
System.setProperty("https.protocols","TLSv1.3");
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user