Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请添加RUTLS可以使用自己实现的ResolvesServerCert trait类 #374

Closed
luluxiuxiu opened this issue Aug 22, 2023 · 1 comment
Closed

Comments

@luluxiuxiu
Copy link

Is your feature request related to a problem? Please describe.
请添加RUTLS可以使用自己实现的ResolvesServerCert trait类,当我们需要动态证书的时候,可以通过实现ResolvesServerCert trait来完成自己自定义解析,但是目前salvo不具备该功能。

Describe the solution you'd like
可以在rustlsconfig中对于fallback或者是其他变量增加针对 ResolvesServerCert trait 实现类的定义,或者在其他地方增加一个可以传入并使用自己ResolvesServerCert trait实现类的地方

Describe alternatives you've considered
我目前没有什么更好的替代方案,我们尝试实现自己的Listner以便解决这个问题

Additional context

chrislearn added a commit to chrislearn/salvo that referenced this issue Aug 24, 2023
@chrislearn
Copy link
Member

直接允许 ServerConfig 作为配置, 应该能解决你的问题吧?

chrislearn added a commit that referenced this issue Aug 24, 2023
* feat!: Make tls more generic #374

* Format Rust code using rustfmt

* version 0.51.0

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants