Fetch the files below from our GitHub repository
Save these files to your project folder:
Start the Java server
This will run the Java server and map port 5001 on your host to 5001 in the container.
Extract the certificate for curl
You need to place the server certificate (https.crt) on your host so you can communicate with curl.Copy it from the container Docker volume to your host (The container name in our example is
jdk-jre-tls-test-app-1):