npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@planet-matrix/huaweiyun-certbot-dns-hook

v0.0.2

Published

方便的对运行在 华为云 上的域名进行 certbot-dns 挑战.

Downloads

7

Readme

@planet-matrix/huaweiyun-certbot-dns-hook

方便的对运行在 华为云 上的域名进行 certbot-dns 挑战.

安装

npm i -g @planet-matrix/huaweiyun-certbot-dns-hook

使用

首先您需要保证您的 dns 解析记录里存在您设置的子域名解析.

例如, 如果您的域名是aaa.com., 您想为bbb.aaa.com.这个子域设置 ssl 证书, 您就必须先手动设置好bbb.aaa.com.的解析记录.

接下来安装 certbot.

接下来创建两个文件, windows 和 linux 略有不同.

  • 文件后缀名不同, windows 是.cmd.bat, linux 是.sh.
  • 设置环境变量的写法不同, windows 是set, linux 是export.

下面的示例使用 windows 的写法:

auth.cmd:

set AK=xxx
set SK=xxx
set ENDPOINT=xxx
set PROJECT_ID=xxx
set ZONE_ID=xxx

planet-matrix-huaweiyun-certbot-dns-hook-auth

cleanup.cmd:

set AK=xxx
set SK=xxx
set ENDPOINT=xxx
set PROJECT_ID=xxx
set ZONE_ID=xxx

planet-matrix-huaweiyun-certbot-dns-hook-cleanup

最后执行命令:

certbot certonly --manual --non-interactive --preferred-challenges=dns --manual-auth-hook <auth文件路径> --manual-cleanup-hook <cleanup文件路径> --agree-tos -m <邮箱> -d <完整子域名>
  • 执行后会卡住很久, 是正常的, 因为要等待 dns 传播. 现在设置的是等待一分钟.
  • 续期时重新执行以上命令即可.