ssigwart/letsencryptdns 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ssigwart/letsencryptdns

Composer 安装命令:

composer require ssigwart/letsencryptdns

包简介

PHP Let's Encrypt Wildcard DNS Client (AWS Route53 support)

README 文档

README

This library implements the dns-01 challenge type for wildcard domains.

Install

composer install ssigwart/letsencryptdns

Basic Usage

Initial Request

  1. Set up $leClient = \LetsEncryptDNSClient\LetsEncryptDNSClient(...); indicating if staging or production endpoint should be used and setting up provider for your LetsEncrypt account.
  2. Call setDNSProvider to set up a DNS provider. Use \LetsEncryptDNSClient\Route53DNSProvider to use AWS's Route53.
  3. Optionally use setLogger(...) to handle log messages. By default, log messages are not output.
  4. Call getTermsOfServiceUrl(...) to get the terms of service, then agreeToTermsOfService to agree to them.
  5. Call $order = $leClient->startWildcardSslOrder('example.com'); to get a wildcard SSL certificate for *.example.com. Store the returned $order->orderUrl.
  6. Store the order URL in a queue for later processing. You should wait a minute or so to wait for DNS propagation.

Finalizing Request

  1. Set up $leClient = \LetsEncryptDNSClient\LetsEncryptDNSClient as in the initial request.
  2. Call $order = $leClient->getOrder('YOUR_ORDER_URL');
  3. Optionally call $order->selfValidateOrderChallenges();. If this fails, the order will likely be rejected.
  4. Call $csr = $this->createCSR(...); to set up certificate signing request.
  5. Call $order = $this->finalizeSslOrder($order, $csr);

Get SSL Certificate

  1. Set up $leClient = \LetsEncryptDNSClient\LetsEncryptDNSClient as in the initial request.
  2. Call $order = $leClient->getOrder('YOUR_ORDER_URL');
  3. If $order->isOrderValid() returns true, call $leClient->getOrderCertificate() to get the SSL certificate

AWS IAM User Setup

The IAM user you use should have the following policy

{
	"Version": "2012-10-17",
	"Statement": [
		{
			"Effect": "Allow",
			"Action": "route53:ChangeResourceRecordSets",
			"Resource": "arn:aws:route53:::hostedzone/REPLACE_WITH_YOUR_HOSTED_ZONE"
		}
	]
}

统计信息

  • 总下载量: 39
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-10-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固