Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

Commit

Permalink
Fix TLS key conversion hack (#537)
Browse files Browse the repository at this point in the history
* Fix TLS key conversion hack

* Spotless
  • Loading branch information
chokoswitch authored Apr 13, 2020
1 parent 9cde2ff commit d6e3cb0
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion common/server/framework/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#
version=0.3.0
version=0.3.1
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ public static void execute(
}

try {
// This triggers Netty to try to read the key and will throw an exception if it can't.
SslContextBuilder.forServer(
new ByteArrayInputStream(keyCertChain), new ByteArrayInputStream(key));
operation.accept(new ByteArrayInputStream(keyCertChain), new ByteArrayInputStream(key));
} catch (Exception e) {
// Try to convert the key to PCKS8.
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pluginManagement {

plugins {
id("com.gradle.enterprise").version("3.2.1")
id("org.curioswitch.gradle-curiostack-plugin").version("0.5.0-RC3")
id("org.curioswitch.gradle-curiostack-plugin").version("0.5.0-RC4")
}

configure<CuriostackExtension> {
Expand Down
4 changes: 2 additions & 2 deletions tools/curiostack-bom/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ val DEPENDENCY_SETS = listOf(
),
DependencySet(
"org.mockito",
"3.3.6",
"3.3.7",
listOf("mockito-core", "mockito-junit-jupiter")
),
DependencySet(
Expand Down Expand Up @@ -325,7 +325,7 @@ val DEPENDENCIES = listOf(
"com.google.maps:google-maps-services:0.11.0",
"com.gradle:gradle-enterprise-gradle-plugin:3.2.1",
"com.hubspot.jinjava:jinjava:2.5.3",
"com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4",
"com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.5",
"de.undercouch:gradle-download-task:4.0.4",
"gradle.plugin.com.boxfuse.client:gradle-plugin-publishing:6.0.6",
"gradle.plugin.com.google.cloud.tools:jib-gradle-plugin:2.1.0",
Expand Down
2 changes: 1 addition & 1 deletion tools/curiostack-bom/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#
version=0.5.0
version=0.5.0.1
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#
version=0.5.0-RC3
version=0.5.0-RC4
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ public class ToolDependencies {

private static Map<String, String> DEFAULT_VERSIONS =
ImmutableMap.<String, String>builder()
.put("bom", "0.5.0")
.put("bom", "0.5.0.1")
.put("claat", "2.2.0")
.put("gcloud", "286.0.0")
.put("golang", "1.14.1")
.put("gcloud", "288.0.0")
.put("golang", "1.14.2")
.put("google-java-format", "1.7")
.put("gradle", "6.3")
.put("helm", "2.10.0")
Expand Down

0 comments on commit d6e3cb0

Please sign in to comment.