Skip to content

Commit fc6e635

Browse files
committed
fix: Exposed public key to match example.cnf file from server side
The example.cnf SHOULDNT BE USED IN PRODUCTION
1 parent f9f788b commit fc6e635

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
target/
22
.gitsecret/keys/random_seed
33
!*.secret
4-
src/test/files/PublicKey.pem

.gitsecret/paths/mapping.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
src/test/files/PublicKey.pem:1bd23604562a2f5cd042b330f2ba6581463dcaf59c65ca75b4ac9178947c83fa

src/test/files/PublicKey.pem

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
-----BEGIN PUBLIC KEY-----
2+
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmm8HzASM58ZMT237SR/h
3+
LK6Ggxj8PXBwNknow2csna/3p1O4+dOLWwOvDl7fBSCOvpU0AtUfnsL66zLf+kBd
4+
cPY72E9ZnrHS4LmkJ6+J49U08swo9zTsxXjMV+gbB0G/gky1tdWn1GA56axAlFgc
5+
RNgYLaJKb2frulg/qBo7Gy8uONCUiD9IchEIvVxR1M6ZJ8Cx+lb4FFWpJO+QjKh+
6+
at1v3Q0De+BTu2pC9GKU4OMC9n4+RPE1TnsNT159o8CxAHuLvGIC2NF0SbIKNpAq
7+
EbyC6HR1QaivDCB9qTWht2pJmEY2SJTCTwp6GC6iwL3vpOEXr9yYdLFRy/1yyIly
8+
NwIDAQAB
9+
-----END PUBLIC KEY-----

src/test/files/PublicKey.pem.secret

-968 Bytes
Binary file not shown.

src/test/java/com/nerox/client/AppTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,13 @@ public class AppTest
1919
Callback callback;
2020
Tfprotocol tfprotocol;
2121
public AppTest(){
22-
this.callback = new Callback();
23-
// Get current path
22+
this.callback = new Callback(); // Get current path
2423
String path = System.getProperty("basedir");
2524
try{
2625
FileInputStream fis = new FileInputStream(this.joinPaths(path, "src/test/files/PublicKey.pem"));
2726
this.tfprotocol = new Tfprotocol(
2827
"localhost",
29-
10345,
28+
10346,
3029
fis,
3130
"testhash",
3231
36,

src/test/java/com/nerox/client/RPCProxyTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public RPCProxyTest(){
2525
FileInputStream fis = new FileInputStream(this.joinPaths(path, "src/test/files/PublicKey.pem"));
2626
this.proxy = new XSRPCProxy(
2727
"localhost",
28-
10345,
28+
10346,
2929
fis,
3030
"testhash",
3131
36,

0 commit comments

Comments
 (0)