antoinerrr / letsencrypt.sh-ovh Goto Github PK
View Code? Open in Web Editor NEWOVH hook script
OVH hook script
Hello Antoiner77,
I started yesterday a project to automate the creation and renewal of letsencrypt (wildcard) certificates using the DNS-01 challenge on a OVH DNS using certbot docker image: https://github.com/Weaverize/certbot-dns-ovh
So far I made a quick POC using your code. I intend to make an actual plugin for certbot, can I use your code in doing so ?
Best regards,
Rémi
The script isn't currently runnable with Python3
Hy,
I encoutered an issue when I want to make a dns01-chanllenge with sub-subdomain. Ie: I wanna have one certificate for xxx.yyy.mydomain.com, but I have this :
Processing xxx.yyy.mydomain.com
+ Signing domains...
+ Generating private key...
+ Generating signing request...
+ Requesting challenge for xxx.yyy.mydomain.com...
Traceback (most recent call last):
File "/opt/hook_ovh/ovhdns.py", line 37, in <module>
target=token
File "/usr/lib/python2.7/site-packages/ovh/client.py", line 371, in post
return self.call('POST', _target, kwargs, _need_auth)
File "/usr/lib/python2.7/site-packages/ovh/client.py", line 472, in call
response=result)
ovh.exceptions.ResourceNotFoundError: This service does not exist
For your information, I suspect the pb corresponding between lines 26-31...
Bonjour,
J'ai télécharger votre hook afin de le faire fonctionner avec Dehydrated et je rencontre l'erreur suivante :
# ./dehydrated -c
# INFO: Using main config file /opt/dehydrated/config
Processing william-feo.fr with alternative names: www.william-feo.fr
+ Signing domains...
+ Generating private key...
+ Generating signing request...
+ Requesting challenge for william-feo.fr...
+ Requesting challenge for www.william-feo.fr...
Traceback (most recent call last):
File "hooks/ovh/ovhdns.py", line 32, in <module>
client = ovh.Client()
File "/usr/local/lib/python2.7/dist-packages/ovh/client.py", line 159, in __init__
endpoint, ENDPOINTS.keys())
ovh.exceptions.InvalidRegion: ('Unknow endpoint %s. Valid endpoints: %s', None, ['kimsufi-ca', 'kimsufi-eu', 'soyoustart-eu', 'ovh-ca', 'ovh-eu', 'runabove-ca', 'soyoustart-ca'])
Ne connaissant pas le langage Python, je ne vois pas où se situe l'erreur.
De plus pour l'exécution du script dehydrated, j'ai créer une copie du fichier ovh.conf.demo en ovh.conf en renseignant les paramètres demandés.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.