Skip to content

Commit 6efa0b4

Browse files
committed
cleanup
1 parent 4046710 commit 6efa0b4

2 files changed

Lines changed: 2 additions & 11 deletions

File tree

sdk/src/test/java.security.test

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +0,0 @@
1-
# the default for these is usually SunX509 but BC doesn't
2-
# support them. tell it to use PKIX instead which is supported by BC
3-
ssl.KeyManagerFactory.algorithm=PKIX
4-
ssl.TrustManagerFactory.algorithm=PKIX

sdk/src/test/java/io/opentdf/platform/sdk/SDKBuilderTest.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -168,13 +168,11 @@ void sdkServicesSetup(boolean useSSLPlatform, boolean useSSLIDP) throws Exceptio
168168

169169
HeldCertificate rootCertificate = new HeldCertificate.Builder()
170170
.certificateAuthority(0)
171-
.rsa2048()
172171
.build();
173172
String localhost = InetAddress.getByName("localhost").getCanonicalHostName();
174173
HeldCertificate serverCertificate = new HeldCertificate.Builder()
175174
.addSubjectAlternativeName(localhost)
176-
.rsa2048()
177-
.commonName("localhost")
175+
.commonName("CN=localhost")
178176
.signedBy(rootCertificate)
179177
.build();
180178

@@ -393,10 +391,7 @@ public <ReqT, RespT> ServerCall.Listener<ReqT> interceptCall(ServerCall<ReqT, Re
393391
}
394392
assertThat(kasDPoPHeader.get()).isNotNull();
395393
assertThat(kasAuthHeader.get()).isEqualTo("DPoP hereisthetoken");
396-
} catch (Exception e) {
397-
assertThat(e).isNull();
398-
}
399-
finally {
394+
} finally {
400395
if (platformServicesServer != null) {
401396
platformServicesServer.shutdownNow();
402397
}

0 commit comments

Comments
 (0)