TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Neverbleed – privilege separation engine for OpenSSL and LibreSSL

47 点作者 kazuho超过 9 年前

5 条评论

fefe23超过 9 年前
I applaud the effort but it does not address the elephant in the room: openssl engines are synchronous. If you use openssl in an event-loop style server (coincidentally, OP&#x27;s own web server h2o appears to be event-loop based), this means that the whole server blocks if the RSA operation blocks.<p>For a hardware accelerator that may not be so bad but if you are trying to separate the HSM via the network, to minimize what an attacker can do after compromising the httpd, then every packet loss or an outage or network delay (or, more generally, any latency) would block the whole httpd.<p>Cloudflare proclaimed a while ago that they had a way to do essentially this (with nginx+openssl) and they said their solution was non-blocking, but they did not publish the code as far as I can tell.<p>I think if one wanted to solve this problem properly, larger architectural changes to openssl would be necessary. Please correct me if I&#x27;m wrong!<p>EDIT: Also, if you move out the RSA operation, ideally you&#x27;d want to distribute the work over more than one CPU core. If the operation is synchronous, you can&#x27;t really do that.
评论 #10267752 未加载
ibejoeb超过 9 年前
Seems like a good idea, but it also seems like a lot of IPC. The author suggests that crypto costs more than IPC, so it doesn&#x27;t matter much, which also seems reasonable, and I suppose most related DOS attacks are mitigated by disallowing client-initiated renegotiation anyway.<p><pre><code> &gt; Q. How much is the overhead? &gt; Virtually none. &gt; On my Linux VM running on Core i7 @ 2.4GHz (MacBook Pro 15&quot; Late 2013)... </code></pre> Would love to see it on a high-end system that&#x27;s primarily doing termination.
评论 #10265749 未加载
adekok超过 9 年前
As an implementor using OpenSSL, I like this. It has a simple API, and is clearly documented.<p>I wish all security improvements were as simple and easy.
ryan-c超过 9 年前
Someone should make an LD_PRELOAD hack for this. I might try throwing one together this weekend if someone doesn&#x27;t beat me to it.
gg1989超过 9 年前
How is it different than using a SoftHSM?
评论 #10265843 未加载