Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/gourds/domain-admin-ssl-deploy

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/gourds/domain-admin-ssl-deploy

  • v1.6.42
  • Source
  • Go
  • Socket score

Version published
Created
Source

domain-admin-ssl-deploy

支持Domain Admin项目证书自定义部署,用python写了一版,不过不同主机部署的话有些麻烦,go的话部署管理方便些

  • 通过控制3个header字段进行自定义部署
  • 配置文件进行命令映射防止危险命令
  • 通过请求头选择执行哪个命令

使用

打包及运行

CGO_ENABLED=0  GOOS=linux  GOARCH=amd64  go build main.go
chmod a+x main

./main

测试

curl --location 'http://localhost:55433/issueCertificate' \
--header 'Token: vqQ2uVaAFj2DXDbbicw7' \
--header 'Key-Save-Path: .' \
--header 'Deploy-Cmd: cmd_simple_nginx' \
--header 'Content-Type: text/plain' \
--data '{
  "domains": [
      "www.baidu.com",
      "zhidao.baidu.com"
  ],
  "ssl_certificate":"-----BEGIN CERTIFICATE-----\nMIIGdTCCBN2gAwI\n-----END CERTIFICATE-----",
  "ssl_certificate_key":"-----BEGIN PRIVATE KEY-----\nMIIEvH+bpTwI=\n-----END PRIVATE KEY-----",
  "start_time": "2023-01-04 14:33:39",
  "expire_time": "2023-04-04 14:33:39"
}
'

FAQs

Package last updated on 24 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc