我想知道是否有人使用配置了 https隧道无需使用 apache 或任何 Web 服务器。我将用它来替换我们的 hudson 构建系统,该系统当前通过 apache https 运行(winstone 通过 apache 代理),这有点重。
我是在我们的 hudson 构建系统中配置 apache https 的人,但我似乎无法理解如何以 stunnel 方式进行配置。
以下是我的 CLI 中 stunnel 运行的示例:
buggedtech~$ stunnel
Reading configuration from file /usr/local/etc/stunnel/stunnel.conf
Snagged 64 random bytes from /Users/icasimpan/.rnd
Wrote 1024 new random bytes to /Users/icasimpan/.rnd
PRNG seeded successfully
Using DH parameters from /usr/local/etc/stunnel/stunnel.pem
DH initialized with 512 bit key
ECDH initialized
Certificate: /usr/local/etc/stunnel/stunnel.pem
Certificate loaded
Key file: /usr/local/etc/stunnel/stunnel.pem
Private key loaded
SSL context initialized for service https
Configuration successful
Clients allowed=125
FD=8 in non-blocking mode
FD=9 in non-blocking mode
FD=10 in non-blocking mode
Option SO_REUSEADDR set on accept socket
Error binding https to ::1:443
bind: Permission denied (13)
提前致谢,
伊斯梅尔·卡西潘:)
答案1
谢谢你的小费。我也意识到了这一点,所以我尝试执行 sudo,现在它可以工作了! :)