Quarkus SSL无法识别的配置密钥

5n0oy7gb  于 2023-10-19  发布在  其他
关注(0)|答案(1)|浏览(129)

我有一个Quarkus项目,启用了SSL,它甚至不能启动应用程序。

Unrecognized configuration key "quarkus.http.ssl.certificate.key-store-type" was provided; it will be ignored; verify that the dependency extension for this configuration is set or that you did not make a t...
Unrecognized configuration key "quarkus.http.ssl.port" was provided; it will be ignored; verify that the dependency extension for this configuration is set or that you did not make a typo
Unrecognized configuration key "quarkus.http.ssl.certificate.key-password" was provided; it will be ignored; verify that the dependency extension for this configuration is set or that you did not make a typo
Unrecognized configuration key "quarkus.http.ssl" was provided; it will be ignored; verify that the dependency extension for this configuration is set or that you did not make a typo

我用的是JDK 17
我这样配置了application.properties:

quarkus.http.ssl=true
quarkus.http.ssl.port=3000
quarkus.http.ssl.certificate.key-store-file=/etc/letsencrypt/live/verseny.iranyazur.hu/keystore.p12
quarkus.http.ssl.certificate.key-password=password
quarkus.http.ssl.certificate.key-store-type=PKCS12

我在pom.xml中也有ssl:

<dependency>
                <groupId>io.quarkus</groupId>
                <artifactId>quarkus-ssl</artifactId>
            </dependency>
            <dependency>
                <groupId>io.quarkus</groupId>
                <artifactId>quarkus-undertow</artifactId>
            </dependency>

密钥库文件有效:

Keystore type: PKCS12
Keystore provider: SUN
Your keystore contains 1 entry
1, 13 Sept 2023, PrivateKeyEntry,
Certificate fingerprint (SHA-256): 73:21:26:CE:DA:D2:C9:06:B3:8B:09:8E:37:0F:A9:0B:BF:C2:6A:42:A3:2A:78:94:0C:8C:13:EA:28:95:A1:81

密钥库也是chmod 777-艾德
我将非常感谢任何想法和帮助什么可能是错误的。

gmxoilav

gmxoilav1#

您使用的属性名称不正确。检查一下正确的。

相关问题