-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTesting.java
More file actions
33 lines (20 loc) · 742 Bytes
/
Copy pathTesting.java
File metadata and controls
33 lines (20 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import serverCommunications.CreateCertificates;
import serverCommunications.hostSocketServer;
import java.io.File;
/**
* Created by ryan on 11/10/14.
*/
public class TestingServer {
public static void main(String[] args) {
String folderpath="/home/ryan"
String pass="happy";
CreateCertificates c=new CreateCertificates("127.0.0.1", "pass");
c.createCertificates(folderpath+"/javaCert.cert", folderpath+"/javaKeystore.jks");
new Thread(new hostSocketServer(pass, 1234, c)).start();
try{
Thread.sleep(5000);}
catch(InterruptedException e) {
e.printStackTrace();
} new Thread(new setupConnection(null,pass, 1234, 0, c)).start();
}
}