mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Merge branch '4.0.x' into 4.1.x
Closes gh-51445
This commit is contained in:
+1
-1
@@ -229,7 +229,7 @@ Please note that you still have to enable SSL on the service which is running in
|
||||
|
||||
include-code::MyRedisWithSslIntegrationTests[]
|
||||
|
||||
The above code uses the javadoc:org.springframework.boot.testcontainers.service.connection.PemKeyStore[format=annotation] annotation to load the client certificate and key into the keystore and the and javadoc:org.springframework.boot.testcontainers.service.connection.PemTrustStore[format=annotation] annotation to load the CA certificate into the truststore.
|
||||
The above code uses the javadoc:org.springframework.boot.testcontainers.service.connection.PemKeyStore[format=annotation] annotation to load the client certificate and key into the keystore and the javadoc:org.springframework.boot.testcontainers.service.connection.PemTrustStore[format=annotation] annotation to load the CA certificate into the truststore.
|
||||
This will authenticate the client against the server, and the CA certificate in the truststore makes sure that the server certificate is valid and trusted.
|
||||
|
||||
The `SecureRedisContainer` in this example is a custom subclass of `RedisContainer` which copies certificates to the correct places and invokes `redis-server` with commandline parameters enabling SSL.
|
||||
|
||||
Reference in New Issue
Block a user