# NC-Link-ProxyServer **Repository Path**: flyasolo/nc-link-proxy-server ## Basic Information - **Project Name**: NC-Link-ProxyServer - **Description**: NC-link代理器 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2023-05-13 - **Last Updated**: 2023-05-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # NC-Link-ProxyServer ### 介绍 NC-Link代理器,主要依赖mosquitto框架,针对框架进行开发。 目前已实现与国密算法的融合,实现TPCM(可信平台控制模块)连接,同时使用数据库存储用户权限和账户信息。 ### 安装准备-安装TASSL - 解压TASSL - 配置 ```bash ./config --prefix=/opt/local no-shared 由于许多系统有自带的 ssl 库,为避免潜在的动态库冲突,此处仅生成静态库 ``` - 编译安装 ```bash make sudo make install //使用sudo是因为会在/opt文件夹创建文件 ``` - 检查TASSL版本 ```bash /opt/local/bin/openssl version -a ``` ![image-20230511225225800](./assets/image-20230511225225800.png) ### 安装 - 安装 ```bash make sudo make install ``` - 启动mosquitto ```bash mosquitto -c /etc/mosquitto/mosquitto.conf -d ``` - 默认配置修改 主要是针对/etc/mosquitto/mosquitto.conf 文件进行修改 ```bash # 设置监听窗口 listener 1883 listener 1883 # 关闭匿名用户登录 allow_anonymous false # 设置用户名密码文件,可修改用户名密码文件的路径 password_file /etc/mosquitto/pwfile.example ``` 创建自定义用户 ```bash mosquitto_passwd -c /etc/mosquitto/pwfile.example user1 ``` - 重启服务生效 ```bash ps -aux | grep mosquitto kill -9 [PID] mosquitto -c /etc/mosquitto/mosquitto.conf -d ``` ### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request