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


#1

0
down vote
favorite
I am a web hosting provider who provides free HTTPS certificates to the domain owners on my platform automatically using Let’s Encrypt.

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.


#2

Which characteristics do you want to test? Perhaps an end-to-end test of greenlock is not as valuable as you think.

You can use the Let’s Encrypt staging service for a realistic integration test, however it does not and cannot reset state. If you use a new ACME account every time, it should largely avoid shared state between tests though.

Otherwise, you could try run https://github.com/letsencrypt/pebble beside your test suite and point greenlock against it.

In any case, it would not be suitable to run tests against the live Let’s Encrypt service, since it would get rated limited rapidly.


#3

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.