mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Fix typos in service connection documentation
See gh-51431 Signed-off-by: chisanw <keuye06380618@gmail.com>
This commit is contained in:
+1
-1
@@ -32,7 +32,7 @@ import org.springframework.core.annotation.AliasFor;
|
||||
* Indicates that a field or method is a {@link ContainerConnectionSource} which provides
|
||||
* a service that can be connected to.
|
||||
* <p>
|
||||
* If the underling connection supports SSL, the {@link PemKeyStore @PemKeyStore},
|
||||
* If the underlying connection supports SSL, the {@link PemKeyStore @PemKeyStore},
|
||||
* {@link PemTrustStore @PemTrustStore}, {@link JksKeyStore @JksKeyStore},
|
||||
* {@link JksTrustStore @JksTrustStore}, {@link Ssl @Ssl} annotations may be used to
|
||||
* provide additional configuration.
|
||||
|
||||
+1
-1
@@ -223,7 +223,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