Sign inSign up

ergomentum/letsencrypt-ovh

By ergomentum

•Updated about 10 years ago

Provides a client to create, renew or revoke a Let's encrypt certificate for a single domain at OVH.

Image
0

1.3K

ergomentum/letsencrypt-ovh repository overview

Docker Image Stars Docker Image Pulls

⁠Ergomentum Let's Encrypt Client for OVH DNS challange

Provides a client to create, renew or revoke a Let's encrypt⁠ certificate for a single domain hosted at OVH⁠ registrar powered by the Let's Encrypt Go client (lego)⁠.

⁠Volumes

None.

OR

/target
Where the accounts and certificates directories with the private key and the certificate will be stored.

⁠Environment Variables

Warning: Keep in mind "that all environment variables originating from Docker within a container are made available to any container that links to it. This could have serious security implications if sensitive data is stored in them."⁠ As a consequence it is strictly recommended to prefer a user defined network⁠ to legacy container links⁠ for maximum isolation.

DOMAIN
The domain to get the certificate for.
EMAIL
Optional. By default hostmaster@${DOMAIN} is used.
STAGING
Optional. If set to true the Let's Encrypt staging server is used instead of the production server.

⁠Exposed Ports

None.

⁠Configuration

If a configuration file is used, describe it here.

⁠Usage

Use this image to run a temporary container.

⁠Getting the OVH credentials
  1. Create the OVH_APPLICATION_KEY and OVH_APPLICATION_SECRET⁠.
  2. Request the OVH_CONSUMER_KEY:
curl \
-XPOST \
-H"X-Ovh-Application: your_ovh_appliction_key" \
-H "Content-type: application/json" \
https://eu.api.ovh.com/1.0/auth/credential -d '{
  "accessRules": [
    {
      "method": "GET",
      "path": "/*"
    },
    {
      "method": "POST",
      "path": "/*"
    },
    {
      "method": "PUT",
      "path": "/*"
    },
    {
      "method": "DELETE",
      "path": "/*"
    }
  ],
  "redirection": "https://www.example.com/"
}'
⁠Create private key and certificate
docker \
  run \
  --rm \
  -e OVH_APPLICATION_KEY="your_ovh_application_key" \
  -e OVH_APPLICATION_SECRET="your_ovh_application_secret" \
  -e OVH_CONSUMER_KEY="your_ovh_consumer_key" \
  -e STAGING="true" \
  -e DOMAIN="your_domain" \
  -v "${PWD}:/target" \
  ergomentum/letsencrypt-ovh \
  run
⁠Renew certificate
docker \
  run \
  --rm \
  -e OVH_APPLICATION_KEY="your_ovh_application_key" \
  -e OVH_APPLICATION_SECRET="your_ovh_application_secret" \
  -e OVH_CONSUMER_KEY="your_ovh_consumer_key" \
  -e STAGING="true" \
  -e DOMAIN="your_domain" \
  -v "${PWD}:/target" \
  ergomentum/letsencrypt-ovh \
  renew
⁠Revoke certificate
docker \
  run \
  --rm \
  -e OVH_APPLICATION_KEY="your_ovh_application_key" \
  -e OVH_APPLICATION_SECRET="your_ovh_application_secret" \
  -e OVH_CONSUMER_KEY="your_ovh_consumer_key" \
  -e STAGING="true" \
  -e DOMAIN="your_domain" \
  -v "${PWD}:/target" \
  ergomentum/letsencrypt-ovh \
  revoke

⁠Contributing

To contribute a feature or a bugfix please open a pull request⁠ on GitHub⁠.

See CONTRIBUTING⁠ for details.

⁠License

See the LICENSE⁠ file for license rights and limitations (Apache License, Version 2.0).

⁠References

None.

Tag summary

Content type

Image

Digest

Size

44.4 MB

Last updated

about 10 years ago

docker pull ergomentum/letsencrypt-ovh