Skip to content

Commit

Permalink
fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
bjarnoldus committed Feb 14, 2022
1 parent aeecf43 commit 4a20aba
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/source/tutorials/install_root_certificate.rst
Expand Up @@ -500,7 +500,7 @@ You can test the JKS with the following Java HTTPS client programm:
import javax.net.ssl.*;
import java.io.*;
public class HtppSSLTestClient {
public class HttpSSLTestClient {
public static void main(String args[]) throws Exception {
String host = "ca.repleo.nl";
Expand Down Expand Up @@ -531,8 +531,8 @@ Compile the program, and run it:

.. code-block:: none
# javac HtppSSLTestClient.java
# java HtppSSLTestClient
# javac HttpSSLTestClient.java
# java HttpSSLTestClient
Exception in thread "main" javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:131)
at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:325)
Expand All @@ -546,7 +546,7 @@ parameter ``javax.net.ssl.trustStore`` and ``javax.net.ssl.trustStorePassword``.

.. code-block:: none
# java -Djavax.net.ssl.trustStore=repleo.jks -Djavax.net.ssl.trustStorePassword=changeit HtppSSLTestClient
# java -Djavax.net.ssl.trustStore=repleo.jks -Djavax.net.ssl.trustStorePassword=changeit HttpSSLTestClient
Got the message: HTTP/1.1 200 OK
When successful, you see the expected 200 OK answer.
Expand Down Expand Up @@ -606,7 +606,7 @@ The password of the cacerts keystore is ``changeit``.
Trust this certificate? [no]: yes
Certificate was added to keystore
# java HtppSSLTestClient
# java HttpSSLTestClient
Got the message: HTTP/1.1 200 OK
Expand Down

0 comments on commit 4a20aba

Please sign in to comment.