-
Notifications
You must be signed in to change notification settings - Fork 682
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#2089] ssl cert tests and documentation
- Loading branch information
Showing
8 changed files
with
221 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -189,7 +189,8 @@ bc. # X509 certificates | |
certificate.key.file=conf/host.key | ||
certificate.file=conf/host.cert | ||
# In case your key file is password protected | ||
certificate.password=secret | ||
# certificate.key.file=conf/host.pass.key | ||
# certificate.password=secret | ||
trustmanager.algorithm=JKS | ||
|
||
If you are using keystore: | ||
|
@@ -202,8 +203,13 @@ Note that the values above are the default values. | |
|
||
You can generate self-signed certificates using *openssl*: | ||
|
||
bc. openssl genrsa 1024 > host.key | ||
openssl req -new -x509 -nodes -sha1 -days 365 -key host.key > host.cert | ||
bc. openssl genrsa -des3 -passout pass:secret -out host.pass.key 2048 | ||
openssl rsa -passin pass:secret -in host.pass.key -out host.key | ||
openssl req -new -key host.key -out host.csr -subj '/C=GB/ST=Test State or Province/L=Test Locality/O=Organization Name/OU=Organizational Unit Name/CN=Common Name/[email protected]' | ||
openssl x509 -req -days 3650 -in host.csr -signkey host.key -out host.cert | ||
|
||
note. the first command creates a password-protected-key ('host.pass.key'). | ||
the second command converts/writes the same key ('host.key') without password protection. | ||
|
||
If you are using the Java keystore mechanism, then the following properties can be configured in your @application.conf@ file: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters