Skip to content

Commit

Permalink
Fix #6 Factory Null-tolerant for trusted certificate
Browse files Browse the repository at this point in the history
  • Loading branch information
stklcode committed Dec 21, 2016
1 parent 3f7f88e commit ea3b6d5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.4.1 [in progress]
* [fix] Factory Null-tolerant for trusted certificate (#6)
* [test] StackTraces testet for secret leaks
* [test] Tested against Vault 0.6.4

## 0.4.0 [2016-11-06]
* [feature] Option to provide a trusted CA certificate (#2)
* [feature] Deletion, revocation and renewal of secrets (#3)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Java Vault Connector is a connector library for [Vault](https://www.vaultproject
* Renew/revoke leases
* Raw secret content or JSON decoding
* Connector Factory with builder pattern
* Tested against Vault 0.6.3
* Tested against Vault 0.6.4

**Usage Example**

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>de.stklcode.jvault</groupId>
<artifactId>connector</artifactId>
<version>0.5.0-SNAPSHOT</version>
<version>0.4.1-SNAPSHOT</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ public HTTPVaultConnectorFactory withPrefix(String prefix) {
* @since 0.4.0
*/
public HTTPVaultConnectorFactory withTrustedCA(Path cert) throws VaultConnectorException {
return withSslContext(createSslContext(cert));
if (cert != null)
return withSslContext(createSslContext(cert));
return this;
}

/**
Expand Down

0 comments on commit ea3b6d5

Please sign in to comment.