我正在使用Micronaut框架,在我的服务中,我看到它正在启用多个TLS版本
11:55:37.884 [main] INFO io.micronaut.runtime.Micronaut - Startup completed in 705ms. Server Running: https://localhost:8443
....
sasl.mechanism = GSSAPI
security.protocol = PLAINTEXT
send.buffer.bytes = 131072
ssl.cipher.suites = null
ssl.enabled.protocols = [TLSv1.2, TLSv1.1, TLSv1]
ssl.endpoint.identification.algorithm = https
ssl.key.password = null
...
我想仅启用 TLSv1.2。
我知道我应该使用micronaut.ssl.protocols(请参见https://docs.micronaut.io/latest/guide/configurationreference.html#io.micronaut.http.ssl.DefaultSslConfiguration)
我的应用程序中有这个。yml
micronaut:
application:
name: myapp
server:
port: 8080
ssl:
enabled: true
port: 8443
protocols: "TLSv1.2"
keyStore:
path: ...
password: ...
type: PKCS12
但是仍然在日志中告诉ssl.enabled.protocols = [TLSv1.2,TLSv1.1,TLSv1]
您能否告诉我如何将属性设置为仅启用TLSv1.2?
谢谢