ssl - 绑定(bind) : Permission denied (13) with stunnel for set https

标签 ssl https fossil stunnel

我收到这个错误:

[!] bind: Permission denied (13)
[!] Error binding service [https] to :::443

这些是我的 stunnel.conf 设置:

[https]
accept = 120.113.121.99:443
accept = :::443
key = /etc/stunnel/localhost.key
cert = /etc/stunnel/localhost.crt
exec = /usr/bin/fossil
execargs = /usr/bin/fossil http /home/kane/repository/2017wcm_g4.fossil -- https --nojail

为什么会出现这个错误?我该如何补救?

最佳答案

我想到了两件事:

  1. 你确定没有其他程序在监听 443 端口吗? (netstat --listen)
  2. 此外,我知道 Linux 需要 root 权限才能监听低于 1024 的端口。stunnel 是否具有这些权限?

关于ssl - 绑定(bind) : Permission denied (13) with stunnel for set https,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43525341/

相关文章:

java - 在连接之前,我如何告诉 SSLSocket 所需的 key 输入的别名?

ssl - DigitalOcean & Letsencrypt - 如何为 HTTPS 安装 SSL

javascript - 随机混合内容问题

version-control - 在 Fossil 中修改工单时的电子邮件通知

git - 维护 git 存储库的克隆

ssl - 我应该在 SSL 加密之前或之后压缩我的数据流吗?

python - 超 HTTP2 自定义 SSLContext 错误

ssl - 推荐的 OpenSSL 和密码学学习资源有哪些?

HTTP Post 请求正文被解释为文本/纯文本而不是 url 编码。

windows - FOSSIL(版本控制系统)不添加 .htaccess 文件。为什么?