New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@certd/plugin-center

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@certd/plugin-center

## 1.本地调试运行 server: ```shell cd packages/ui/certd-server npm run dev ```

latest
npmnpm
Version
1.20.9
Version published
Maintainers
1
Created
Source

贡献插件

1.本地调试运行

server:

cd packages/ui/certd-server
npm run dev

client:

cd packages/ui/certd-client
npm run dev

# 访问客户端,即可测试你的插件

开发插件

进入 packages/plugins/plugin-center/src

1.复制demo目录作为你的插件目录

比如你想做cloudflare的插件,那么你可以复制demo目录,将其命名成cloudflare。

2. access授权

如果这是一个新的平台,它应该有授权方式,比如accessKey accessSecret之类的
参考demo/access.ts 修改为你要做的平台的access 这样用户就可以在certd后台中创建这种授权凭证了

3. dns-provider

如果域名是这个平台进行解析的,那么你需要实现dns-provider 参考demo/dns-provider.ts 修改为你要做的平台的dns-provider

4. deploy-plugin

如果这个平台有需要部署证书的地方
参考demo/deploy-plugin.ts 修改为你要做的平台的deploy-plugin

5. 增加导入

./src/你的插件目录/index.ts中增加你的插件import

export * from './dns-provider'
export * from './plugin-test'
export * from './access'

./src/index.ts中增加import

export * from "./你的插件目录"

重启服务进行调试

确保能够正常进行证书申请和部署

提交PR

我们将尽快审核PR

FAQs

Package last updated on 22 Mar 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