Skip to content

Latest commit

 

History

History
21 lines (12 loc) · 611 Bytes

README.md

File metadata and controls

21 lines (12 loc) · 611 Bytes

simple-https-java

This example requires GraalVM with Java 11.

Steps to reproduce:

  1. javac SimpleHTTPSServer.java
  2. javac Https11SimpleClient.java
  3. native-image --no-fallback --enable-all-security-services Https11SimpleClient
  4. java SimpleHTTPSServer

Then in another console:

-> This request is expected to be successful.

  1. java -Djavax.net.ssl.trustStore=testkey.jks -Djavax.net.ssl.trustStorePassword=password Https11SimpleClient

-> Testing the native image fails.

  1. ./https11simpleclient -Djavax.net.ssl.trustStore=testkey.jks -Djavax.net.ssl.trustStorePassword=password