本文介绍了Quarkus HTTPS 宁静服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

是否有任何示例/教程可以使用 quarkus.io 构建和配置 TLS 安全的 Restful 服务?

Is there any example/tutorial to build and configure TLS-secured restful service using quarkus.io?

不幸的是,我在 quarkus 文档中都找不到,这里也没有.

Unfortunately I can not find one neither at quarkus documentation, no here.

推荐答案

我们的 Undertow 扩展确实支持它,但不幸的是,没有记录.

It is indeed supported by our Undertow extension but, unfortunately, not documented.

您可以定义如下内容:

quarkus.http.ssl.certificate.file=...
quarkus.http.ssl.certificate.key-file=...
...

在您的 application.properties 中.

in your application.properties.

配置入口点是 ServerSslConfig(参见 https://github.com/quarkusio/quarkus/blob/master/core/runtime/src/main/java/io/quarkus/runtime/configuration/ssl/ServerSslConfig.java#L41).然后添加带有点的嵌套属性并将驼峰式大小写转换为破折号.

The config entry point is ServerSslConfig (see https://github.com/quarkusio/quarkus/blob/master/core/runtime/src/main/java/io/quarkus/runtime/configuration/ssl/ServerSslConfig.java#L41). You then add the nested properties with dots and transform camel-case to dashes.

如果您想构建本机可执行文件,很有可能您还必须添加 quarkus.ssl.native=true.

If you want to build a native executable, there's a good chance you will have to add quarkus.ssl.native=true too.

如果您有反馈或想要为此贡献指南,请随时加入我们的 Zulip 或在 GitHub 上打开问题/PR.

If you have feedback or if you want to contribute a guide for that, feel free to join us on Zulip or open issues/PRs on GitHub.

这篇关于Quarkus HTTPS 宁静服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-08 23:31