Skip to content

Commit 39df62d

Browse files
authored
Update environment variable used in example
* Updated the section to use the new environment variable `JRE_HOME` which is now recommended to accommodate differences between Java 8 and later versions * Fixed a typo in the path of one code example
1 parent 6b92c16 commit 39df62d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/app-service/configure-language-java.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ To inject these secrets in your Spring or Tomcat configuration file, use environ
436436
437437
### Use the Java Key Store
438438
439-
By default, any public or private certificates [uploaded to App Service Linux](configure-ssl-certificate.md) will be loaded into the respective Java Key Stores as the container starts. After uploading your certificate, you will need to restart your App Service for it to be loaded into the Java Key Store. Public certificates are loaded into the Key Store at `$JAVA_HOME/jre/lib/security/cacerts`, and private certificates are stored in `$JAVA_HOME/lib/security/client.jks`.
439+
By default, any public or private certificates [uploaded to App Service Linux](configure-ssl-certificate.md) will be loaded into the respective Java Key Stores as the container starts. After uploading your certificate, you will need to restart your App Service for it to be loaded into the Java Key Store. Public certificates are loaded into the Key Store at `$JRE_HOME/lib/security/cacerts`, and private certificates are stored in `$JRE_HOME/lib/security/client.jks`.
440440
441441
More configuration may be necessary for encrypting your JDBC connection with certificates in the Java Key Store. Refer to the documentation for your chosen JDBC driver.
442442
@@ -453,12 +453,12 @@ To initialize the `import java.security.KeyStore` object, load the keystore file
453453
```java
454454
KeyStore keyStore = KeyStore.getInstance("jks");
455455
keyStore.load(
456-
new FileInputStream(System.getenv("JAVA_HOME")+"/lib/security/cacets"),
456+
new FileInputStream(System.getenv("JRE_HOME")+"/lib/security/cacerts"),
457457
"changeit".toCharArray());
458458
459459
KeyStore keyStore = KeyStore.getInstance("pkcs12");
460460
keyStore.load(
461-
new FileInputStream(System.getenv("JAVA_HOME")+"/lib/security/client.jks"),
461+
new FileInputStream(System.getenv("JRE_HOME")+"/lib/security/client.jks"),
462462
"changeit".toCharArray());
463463
```
464464

0 commit comments

Comments
 (0)