Skip to content
This repository has been archived by the owner on Dec 17, 2019. It is now read-only.
/ testing-ca Public archive

[ARCHIVED] use https://github.com/letsencrypt/pebble instead. Certificate Authority Docker image for functionnal tests of other repositories

License

Notifications You must be signed in to change notification settings

acmephp/testing-ca

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

Acme Testing CA

Provide a Certificate Authority server for testing purpose.

Requirements

  • docker

Usage

Hosted on Docker Hub: https://hub.docker.com/r/acmephp/testing-ca/

Start the server container in background.

docker run -d --net host --add-host acmephp.com:127.0.0.1 acmephp/testing-ca
docker run -d --add-host acmephp.com:127.0.0.1 acmephp/testing-ca

By design, the CA server will resolve the DNS for domains you are requesting. For testing purpose you have 2 way to resolve challenges

  • Running several containers in the same network. The domain to test is the name of the container. Docker will automatically resolve the name of the container
  • Starting testing-ca on the host network, and declare domains with --add-host
docker run -d --net host --add-host acmephp.com:127.0.0.1 acmephp/testing-ca
docker run -d --add-host acmephp.com:127.0.0.1 acmephp/testing-ca

Configure your application to call the testing CA with the following endpoints

https://127.0.0.1:14000/dir