-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Documentation of SSL support for RexsterHttpServer
- Loading branch information
Showing
2 changed files
with
67 additions
and
0 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
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
Rexster communication can be secured with SSL by [[configuration|Rexster Configuration]] through @rexster.xml@. Server and client authentication are currently supported on [[REST|Basic REST API]] and [[Dog House|the Dog House]]. | ||
|
||
A typical Rexster-SSL configuration might be as follows: | ||
|
||
```xml | ||
<rexster> | ||
... | ||
<ssl> | ||
<protocol>TLS</protocol> | ||
<trust-store-provider>JKS</trust-store-provider> | ||
<key-store-provider>JKS</key-store-provider> | ||
<trust-store></trust-store> | ||
<key-store>config/ssl/serverKeyStore.jks</key-store> | ||
<trust-store-password></trust-store-password> | ||
<key-store-password>keyStorePassword</key-store-password> | ||
<key-manager-factory> | ||
<algorithm>SunX509</algorithm> | ||
</key-manager-factory> | ||
<trust-manager-factory> | ||
<algorithm>SunX509</algorithm> | ||
</trust-manager-factory> | ||
<need-client-auth>false</need-client-auth> | ||
<want-client-auth>false</want-client-auth> | ||
</ssl> | ||
... | ||
</rexster> | ||
``` | ||
|
||
Once SSL has been enabled for a server (see how below), no further action is necessary for its' communications to be secured by SSL. Clients communicating with SSL secured servers will also require appropriately configured SSL and valid certificates (if client authorization is turned on). | ||
|
||
h1. Enable SSL for HTTP Web Service | ||
|
||
After configuring SSL in the @<ssl>@ section of @rexster.xml@, enable it for HTTP calls by setting @http.enable-ssl@ to true and changing @http@ to @https@ in the @http.base-uri@ property. | ||
|
||
```xml | ||
<rexster> | ||
<http> | ||
... | ||
<base-uri>https://your-hostname</base-uri> | ||
... | ||
<enable-ssl>true</enable-ssl> | ||
... | ||
</http> | ||
... | ||
</rexster> | ||
``` | ||
|