@@ -191,22 +191,28 @@ class RemotingTLSTests: ClusteredActorSystemsXCTestCase {
191191
192192 let local = self . setUpNode ( " local " ) { settings in
193193 settings. cluster. node. host = " localhost "
194- settings. cluster. tls = TLSConfiguration . forServer (
194+ settings. cluster. tls = TLSConfiguration . makeServerConfiguration (
195195 certificateChain: [ testCertificateSource1] ,
196- privateKey: testKeySource1,
197- certificateVerification: . fullVerification,
198- trustRoots: . certificates( [ testCertificate2] )
196+ privateKey: testKeySource1
197+ // ,
198+ // certificateVerification: .fullVerification,
199+ // trustRoots: .certificates([testCertificate2])
199200 )
201+ settings. cluster. tls? . certificateVerification = . fullVerification
202+ settings. cluster. tls? . trustRoots = . certificates( [ testCertificate2] )
200203 }
201204
202205 let remote = setUpNode ( " remote " ) { settings in
203206 settings. cluster. node. host = " localhost "
204- settings. cluster. tls = TLSConfiguration . forServer (
207+ settings. cluster. tls = TLSConfiguration . makeServerConfiguration (
205208 certificateChain: [ testCertificateSource2] ,
206- privateKey: testKeySource2,
207- certificateVerification: . fullVerification,
208- trustRoots: . certificates( [ testCertificate1] )
209+ privateKey: testKeySource2
210+ // ,
211+ // certificateVerification: .fullVerification,
212+ // trustRoots: .certificates([testCertificate1])
209213 )
214+ settings. cluster. tls? . certificateVerification = . fullVerification
215+ settings. cluster. tls? . trustRoots = . certificates( [ testCertificate1] )
210216 }
211217
212218 local. cluster. join ( node: remote. cluster. uniqueNode. node)
@@ -221,22 +227,28 @@ class RemotingTLSTests: ClusteredActorSystemsXCTestCase {
221227
222228 let local = self . setUpNode ( " local " ) { settings in
223229 settings. cluster. node. host = " 127.0.0.1 "
224- settings. cluster. tls = TLSConfiguration . forServer (
230+ settings. cluster. tls = TLSConfiguration . makeServerConfiguration (
225231 certificateChain: [ testCertificateSource] ,
226- privateKey: testKey,
227- certificateVerification: . fullVerification,
228- trustRoots: . certificates( [ testCertificate] )
232+ privateKey: testKey
233+ // ,
234+ // certificateVerification: .fullVerification,
235+ // trustRoots: .certificates([testCertificate])
229236 )
237+ settings. cluster. tls? . certificateVerification = . fullVerification
238+ settings. cluster. tls? . trustRoots = . certificates( [ testCertificate] )
230239 }
231240
232241 let remote = setUpNode ( " remote " ) { settings in
233242 settings. cluster. node. host = " 127.0.0.1 "
234- settings. cluster. tls = TLSConfiguration . forServer (
243+ settings. cluster. tls = TLSConfiguration . makeServerConfiguration (
235244 certificateChain: [ testCertificateSource] ,
236- privateKey: testKey,
237- certificateVerification: . fullVerification,
238- trustRoots: . certificates( [ testCertificate] )
245+ privateKey: testKey
246+ // ,
247+ // certificateVerification: .fullVerification,
248+ // trustRoots: .certificates([testCertificate])
239249 )
250+ settings. cluster. tls? . certificateVerification = . fullVerification
251+ settings. cluster. tls? . trustRoots = . certificates( [ testCertificate] )
240252 }
241253
242254 let testKit = ActorTestKit ( local)
@@ -268,22 +280,28 @@ class RemotingTLSTests: ClusteredActorSystemsXCTestCase {
268280 let testKey : NIOSSLPrivateKeySource = . privateKey( try NIOSSLPrivateKey ( bytes: [ UInt8] ( testKey1. utf8) , format: . pem) )
269281 let local = self . setUpNode ( " local " ) { settings in
270282 settings. cluster. node. host = " localhost "
271- settings. cluster. tls = TLSConfiguration . forServer (
283+ settings. cluster. tls = TLSConfiguration . makeServerConfiguration (
272284 certificateChain: [ testCertificateSource] ,
273- privateKey: testKey,
274- certificateVerification: . noHostnameVerification,
275- trustRoots: . certificates( [ testCertificate] )
285+ privateKey: testKey
286+ // ,
287+ // certificateVerification: .fullVerification,
288+ // trustRoots: .certificates([testCertificate])
276289 )
290+ settings. cluster. tls? . certificateVerification = . noHostnameVerification
291+ settings. cluster. tls? . trustRoots = . certificates( [ testCertificate] )
277292 }
278293
279294 let remote = setUpNode ( " remote " ) { settings in
280295 settings. cluster. node. host = " localhost "
281- settings. cluster. tls = TLSConfiguration . forServer (
296+ settings. cluster. tls = TLSConfiguration . makeServerConfiguration (
282297 certificateChain: [ testCertificateSource] ,
283- privateKey: testKey,
284- certificateVerification: . noHostnameVerification,
285- trustRoots: . certificates( [ testCertificate] )
298+ privateKey: testKey
299+ // ,
300+ // certificateVerification: .fullVerification,
301+ // trustRoots: .certificates([testCertificate])
286302 )
303+ settings. cluster. tls? . certificateVerification = . noHostnameVerification
304+ settings. cluster. tls? . trustRoots = . certificates( [ testCertificate] )
287305 }
288306
289307 local. cluster. join ( node: remote. cluster. uniqueNode. node)
@@ -303,24 +321,30 @@ class RemotingTLSTests: ClusteredActorSystemsXCTestCase {
303321 let testCertificateSource : NIOSSLCertificateSource = . certificate( testCertificate)
304322 let testKey : NIOSSLPrivateKeySource = . file( tmpKeyFile. path)
305323 let local = self . setUpNode ( " local " ) { settings in
306- settings. cluster. tls = TLSConfiguration . forServer (
324+ settings. cluster. tls = TLSConfiguration . makeServerConfiguration (
307325 certificateChain: [ testCertificateSource] ,
308- privateKey: testKey,
309- certificateVerification: . noHostnameVerification,
310- trustRoots: . certificates( [ testCertificate] )
326+ privateKey: testKey
327+ // ,
328+ // certificateVerification: .fullVerification,
329+ // trustRoots: .certificates([testCertificate])
311330 )
331+ settings. cluster. tls? . certificateVerification = . noHostnameVerification
332+ settings. cluster. tls? . trustRoots = . certificates( [ testCertificate] )
312333 settings. cluster. tlsPassphraseCallback = { setter in
313334 setter ( [ UInt8] ( " test " . utf8) )
314335 }
315336 }
316337
317338 let remote = setUpNode ( " remote " ) { settings in
318- settings. cluster. tls = TLSConfiguration . forServer (
339+ settings. cluster. tls = TLSConfiguration . makeServerConfiguration (
319340 certificateChain: [ testCertificateSource] ,
320- privateKey: testKey,
321- certificateVerification: . noHostnameVerification,
322- trustRoots: . certificates( [ testCertificate] )
341+ privateKey: testKey
342+ // ,
343+ // certificateVerification: .fullVerification,
344+ // trustRoots: .certificates([testCertificate])
323345 )
346+ settings. cluster. tls? . certificateVerification = . noHostnameVerification
347+ settings. cluster. tls? . trustRoots = . certificates( [ testCertificate] )
324348 settings. cluster. tlsPassphraseCallback = { setter in
325349 setter ( [ UInt8] ( " test " . utf8) )
326350 }
0 commit comments