SSL:NancyFx Selfhost Mono Linux(pi) [英] SSL: NancyFx Selfhost Mono Linux (pi)
问题描述
我是Linux(PI)和Mono的新手,对于新手问题的致谢
我如何在mono/linux/pi上通过https运行NancyFx,机架主机?
如果我能够使用OpenSsl(cer文件)创建证书,如何将其分配给端口?
文档中的显示了如何在Windows上执行此操作(此处解决方案
使用httpcfg
将证书绑定到端口,例如:
httpcfg -add -cert my_certificate.cer -pvk my_privatekey.pvk -port 443
但是不幸的是,当前需要客户端证书的Mono版本似乎存在问题,请参阅:
https://github.com/mono/mono/pull/1202
和(最近的跟进)
https://github.com/mono/mono/pull/2817
最后一个有效的Mono版本(我对此进行了测试)是 3.10.0 (由于缺少安全更新,因此不应在生产环境中使用).
看看我对这个问题的答案,以了解如何使用修补源代码并自行编译,从而获得了最新的Mono版本.
I am new to linux (PI) and mono, applogies for the newbie question
How do I run NancyFx, shelf host, over https, on mono/linux/pi?
If i am able to create a certificate using OpenSsl (cer file), how do I assign it to a port?
in the docs show how to do this for windows (here https://github.com/NancyFx/Nancy/wiki/Accessing-the-client-certificate-when-using-SSL#configuration-of-hostingself)
thanks
Use httpcfg
to bind your certificate to a port, e.g.:
httpcfg -add -cert my_certificate.cer -pvk my_privatekey.pvk -port 443
But unfortunately there seems to be a problem with current Mono version requiring client certificates, see:
https://github.com/mono/mono/pull/1202
and (more recent follow-up)
https://github.com/mono/mono/pull/2817
The last Mono version that works (I tested this) is 3.10.0 (which shouldn't be used in production environment, because of missing security updates).
Take a look at my answer to this question for a way to use a recent Mono version by patching the source code and compiling it yourself.
这篇关于SSL:NancyFx Selfhost Mono Linux(pi)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!