Skip to content

Commit

Permalink
TKSS-328: Add TLS demo for Tomcat
Browse files Browse the repository at this point in the history
  • Loading branch information
johnshajiang committed Aug 16, 2023
1 parent bf65c71 commit a12ffbf
Show file tree
Hide file tree
Showing 3 changed files with 499 additions and 0 deletions.
1 change: 1 addition & 0 deletions kona-ssl/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ dependencies {
testImplementation("org.eclipse.jetty:jetty-server:9.4.44.v20210927")
testImplementation("org.eclipse.jetty:jetty-servlet:9.4.44.v20210927")
testImplementation("org.eclipse.jetty:jetty-client:9.4.44.v20210927")
testImplementation("org.apache.tomcat.embed:tomcat-embed-core:9.0.78")
testImplementation("org.apache.httpcomponents:httpclient:4.5.13")

jmhImplementation("org.openjdk.jmh:jmh-core:1.35")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ public void tlsDemo() throws Exception {
// Output debug info.
// System.setProperty("com.tencent.kona.ssl.debug", "all");

// Just use SM2 curve for key share
System.setProperty("com.tencent.kona.ssl.namedGroups", "curveSM2");

// Add providers.
TestUtils.addProviders();

Expand Down
Loading

0 comments on commit a12ffbf

Please sign in to comment.