From 25d8f64bedc3867f8eab7cd74166cc22edb91527 Mon Sep 17 00:00:00 2001 From: Jeff Storck Date: Wed, 3 Apr 2019 01:06:04 -0400 Subject: [PATCH] NIFI-6178: Implemented capability to add IP SANs to certs Regenerated test certs for nifi-livy-processors and nifi-standard-processors to fix some broken SSL tests in those modules This closes #3416. --- .../src/test/resources/keystore.jks | Bin 3088 -> 3095 bytes .../src/test/resources/truststore.jks | Bin 911 -> 911 bytes .../src/test/resources/keystore.jks | Bin 3088 -> 3095 bytes .../src/test/resources/truststore.jks | Bin 911 -> 911 bytes .../nifi/toolkit/tls/util/TlsHelper.java | 3 ++- .../nifi/toolkit/tls/util/TlsHelperTest.java | 5 ++++- 6 files changed, 6 insertions(+), 2 deletions(-) diff --git a/nifi-nar-bundles/nifi-spark-bundle/nifi-livy-processors/src/test/resources/keystore.jks b/nifi-nar-bundles/nifi-spark-bundle/nifi-livy-processors/src/test/resources/keystore.jks index 246fe888efbb981188c9dcca109b5d2c52f2b435..5f3cbe3a785e57214b925ea65bd18bab0e5c3944 100644 GIT binary patch delta 2701 zcma*nX*3iH9|rIlMi^zO35mF5-)4+u7{oNnzBP8Tmd0AvtYaskv4zRZoheI1ktKU{ z?J`*=MTE=9E;07yz4x5=ocDfs&w1Z(|K~i<$KUzm`SbYkLOAS<7ormYU}1*Ffli^E zXTY*&fFPg@6Auu`0szHU5%n*kpjT4oa4!kgbnz$8LBdHXu*p2Co0e=cg!3`DLhQcSNT#Ia{k#I$Ov zk-7Xo7tx-{GJB^HKX&8oFXrm7Q4S;+3V3U|Q?Vg8y&N?72sR8~a+Q8-cr3soe)WA? za{FoWSLB|(;oTBTr#~XQpBylo@i(;K2ZDRc#2UJBGp};~TrvJQJ92XMbxCVPQjg2m z^}WkCTCu~ugvslAY+`+SVd8D6pT=u94E44VPlES}XonGt-R-;F(-Y3Uc>3yqu8^~` z#5wO8BjIIL!O7M-vj+GvWf~b|ZGP|2yvp9zvi;Jb+(Kc1W?r5EdE)vnJH{a4abZ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xWPglSl$He=DxhQklBc820eg zR!d8Lq2|G@&dhB)i?_LC^Y!aK=|3rqGIcEqyeht-F1Bed;jsF|jmHR(<|a|#P}5;T zlQ2;9n5a03B1#>E29ljw}F>l)AgZ4}0T z^7X1vb=`)%Ku{g83Q||3%3;>2TNdS|7_}8bIc3gVf$ZU3(#y6II@ru)fwk?b0fU-C z+nJv*52vz{TVNo$XZ3ovo&}e?p?dpP+w!)2FAdV=cGBQ}7OzMqw}(uUl03zo`6QdFgY?YF*z_cH8ENj4Kgt>IWjOYIWRUgk(o$;i-s|ed_M4aKJJqi35^9D(qaee zrD!3b-alWHf{wmH?%qH{I>hkqVIo?dGTJF>QgB1uQ1q2jvbvFbuGbGCze$!DAvmWN znVK;yorKCpwWm!E7nXN6sVR`C`74rDf+et9AcF9CKc*2ytk_u0+XP!yViAr!1m|?X zch^9Fp=a~O9XGBZ3o)y;w<2yI5ifl#8XRW+000Wvid&oGmVzL+h%)GczgPprJL z2GPkd9|i+e9U}x7FcyFm6wfe|i@umGywojnwNI?Pu?Eq}lSl$He_!f#l?v&F0K%^i zN2yY4rdlW2R#f;0#lQVVitt_QBzSkJzHF4&o72TddCAxOun(wj6ZCdx1HLzsa$SLI z1^@f5IWD+*H39-dOm%XQPlOy_;@evQ^!FOtVD>&0HMNRMZeH(YL%D zk{LhSr{ik)rAY20e~!-|z3{b7@2(#eExlOZgy^_u^0A=h0Gte<42l)!TU{F`yI3C8 zgc}cI6#K extractedSans = extractSanFromCsr(csrWithSan); assert extractedSans.size() == SAN_COUNT + 1; - List formattedSans = SAN_ENTRIES.stream().map(s -> "DNS: " + s).collect(Collectors.toList()); + List formattedSans = SAN_ENTRIES.stream() + .map(s -> (IPAddress.isValid(s) ? "IP Address: " + new GeneralName(GeneralName.iPAddress, s).getName() : "DNS: " + s)) + .collect(Collectors.toList()); assert extractedSans.containsAll(formattedSans); // We check that the SANs also contain the CN