hfs通过stunnel实现https访问

hfs通过stunnel实现https访问

REF:官方文档,有点老旧

https://blog.51cto.com/u_15015155/2554641

步骤

  1. 下载stunnel工具 download

    (笔者用的是windows的)

  2. 下载stunnel途中会进行本地证书的制作(也可以用openssl自定义证书),如下:

    完成后运行,界面显示如下:

  3. 下载hfs download

  4. 最简单的配置,stunnel.conf如下:

    修改部分,如下:

    shell 复制代码
    [http2https]
    accept = 443 ;服务监听端口,也就是终端访问服务所写的端口
    connect = 127.0.0.1:80 ;hfs端口
    cert = D:\Program Files (x86)\stunnel\config\stunnel.pem ;证书所在目录

结果

终端程序(client): 192.168.200.128,程序访问服务URL:https://1923.168.200.188:443/

hfs(server): 192.168.200.188

相关推荐
FPGA_Linuxer21 小时前
FPGA 40 DAC线缆和光模块带光纤实现40G UDP差异
网络协议·fpga开发·udp
real 121 小时前
传输层协议UDP
网络·网络协议·udp
ftpeak1 天前
从零开始使用 axum-server 构建 HTTP/HTTPS 服务
网络·http·https·rust·web·web app
hsjkdhs1 天前
网络编程之UDP广播与粘包问题
网络·网络协议·udp
00后程序员张1 天前
详细解析苹果iOS应用上架到App Store的完整步骤与指南
android·ios·小程序·https·uni-app·iphone·webview
yzx9910131 天前
接口协议全解析:从HTTP到gRPC,如何选择适合你的通信方案?
网络·人工智能·网络协议·flask·pygame
板鸭〈小号〉2 天前
UDP-Server(3)chat聊天室
网络·网络协议·udp
weixin_456904272 天前
使用HTTPS 服务在浏览器端使用摄像头的方式解析
网络协议·http·https
不会叫的狼2 天前
HTTPS + 域名 + 双向证书认证(下)
https
疯狂的维修2 天前
关于Gateway configration studio软件配置网关
网络协议·c#·自动化·gateway