Added quotes around keystore password

This commit is contained in:
Keith Chan 2021-09-20 13:18:21 -07:00 committed by GitHub
parent 9738b5c54b
commit 9861e07d7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ import java.io.IOException;
public class Main {
public static void main(String[] args) throws IOException{
System.setProperty("javax.net.ssl.trustStore", "/full/path/to/keystore");
System.setProperty("javax.net.ssl.trustStorePassword", password-to-keystore);
System.setProperty("javax.net.ssl.trustStorePassword", "password-to-keystore");
//Only for demo purposes. Don't specify your credentials in code.
final CredentialsProvider credentialsProvider = new BasicCredentialsProvider();