简体   繁体   English

我如何对加密证书颁发进行回归测试?

[英]How do I perform regression testing on let's encrypt certificate issuance?

I am a web hosting provider who provides free HTTPS certificates to the domain owners on my platform automatically using Let's Encrypt. 我是网络托管提供商,他使用Let's Encrypt自动向平台上的域所有者提供免费的HTTPS证书。

I need to be able to test out repeatedly the process of issuance of certificates for a domain. 我需要能够反复测试域证书的颁发过程。 Since I do not have unlimited domains to test with, I need to be able to fully reset all certificates or any process that have occurred on a domain so I can repeat the process in a test suite. 由于我没有要测试的无限域,因此我需要能够完全重置域中发生的所有证书或任何过程,以便可以在测试套件中重复该过程。

How can I do this ? 我怎样才能做到这一点 ?

I am using Node/Express and greenlock as my server software. 我正在使用Node / Express和greenlock作为服务器软件。

If you also provide DNS 如果您还提供DNS

You should be able to easily set up a testing environment that uses DNS instead of http challenges, so you can test all of the domains without affecting production. 您应该能够轻松地设置使用DNS而不使用http挑战的测试环境,以便可以测试所有域而不会影响生产。

If not, use staging and curl 如果没有,请staging卷曲

I think it may be easiest to write you test with bash and curl at first. 我认为一开始使用bash和curl进行测试可能是最简单的。 You can use curl's --with-ca-path= option to allow the staging environment's root authority to pass the checks. 您可以使用curl的--with-ca-path=选项来允许登台环境的根权限通过检查。

You could also do this more programmatically in node.js, which also has the option to add custom certificate authorities on a per-request basis. 您也可以在node.js中以编程方式进行此操作,它还可以选择根据每个请求添加自定义证书颁发机构。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用Let's Encrypt在Nginx上制作受SSL保护的反向代理? - How do I make an SSL-secured reverse proxy on Nginx with Let's Encrypt? 在 Docker 图片中创建 Let's Encrypt 证书和 Certbot - Creating Let's Encrypt Certificate & Certbot Within Docker Image 使用 Let's Encrypt 证书通过 HTTPS 访问 CouchDB 时,节点无法验证第一个证书 - Node unable to verify the first certificate when accessing CouchDB through HTTPS with a Let's Encrypt certificate Node.js HTTPS 服务器让我们加密证书文件在 Windows 服务器上的位置 - Node.js HTTPS Server Let's Encrypt Certificate Files Location on Windows Server 让我们加密自动续订时出错(Nginx) - Error on Let's encrypt auto renewal (Nginx) 如何使用Node.js和双向ssl执行自动浏览器测试? - How do I perform automated browser testing with Node.js and two-way ssl? 如何使用基于Node.js图像的Docker容器的Let's Encrypt - How to use Let's Encrypt with Docker container based on the Node.js image 如果我控制框架,如何让父 window 访问框架的内容? - How do I let a parent window access my frame's content if I control the frame? Socket.io无法与https(Let's Encrypt)一起使用 - Socket.io not working with https (Let's Encrypt) Server 2012,SSL(让我们加密),nodejs应用,重定向端口 - Server 2012, SSL (let's encrypt), nodejs app, redirect port
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM