# rdpsign **Repository Path**: cyberkylin/rdpsign ## Basic Information - **Project Name**: rdpsign - **Description**: A Golang open source software used to implement the function of Microsoft rdpsign program - **Primary Language**: Go - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-02-20 - **Last Updated**: 2023-02-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # rdpsign #### 介绍 本工程基于golang实现微软rdpsign.exe的功能,并提供更加丰富的命令接口 #### 软件架构 src目录下包括: 1. rdpsign目录实现主程序和Makefile 2. pkcs7目录实现基于RFC2315 PKCS#7 CMS规范的数据签名模块 #### 安装教程 1. 在本地创建工程目录,例如:mkdir rdpsign 2. 切换至工程目录,例如: cd rdpsign 3. 克隆工程代码:git clone https://gitee.com/cyberkylin/rdpsign.git 4. 进入src/rdpsign目录:cd src/rdpsign 5. 编译代码:make 或者 go build,windows下会生成rdpsign.exe, Linux下生成rdpsign #### 使用说明 1. 创建自签名证书: rdpsign -newcert -cn name [-expire years][-out path] 例如创建CN为test_host的公私钥证书: rdpsign -newcert -cn test_host -expire 10 2. 对.rdp文件签名: rdpsign -sign -cert certfile -key keyfile -rdp rdpfile 例如对test.rdp进行签名: rdpsign -sign -u -cert test_host.crt -key test_host.key -rdp test.rdp 3. 对base64编码的rdp配置签名: rdpsign -sign -cert certfile -key keyfile -b64 base64_settings 4. 对标准输入的的配置进行签名: 例如从stdin读取rdp配置并打印签名后的的url编码的UTF8字串: cat test.rdp | rdpsign -sign -u -cert test_host.crt -key test_host.key 5. 从TCP监听端口读取rdp配置进行签名(API接口): rdpsign -server -p port -cert certfile -key keyfile -l logfile 6. 更多参数帮助: rdpsign -h #### 关于CyberKylin 致力于在网络安全和新技术领域开发出更多软件精品,共同促进基于开源软件的企业级应用。 Email: openck@aliyun.com 即将开通网址: https://www.cyberkylin.com