Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

corrections dans generate_certbot.php #48

Open
quenenni opened this issue May 20, 2019 · 6 comments
Open

corrections dans generate_certbot.php #48

quenenni opened this issue May 20, 2019 · 6 comments

Comments

@quenenni
Copy link

https://github.com/AlternC/alternc-certbot/blob/04fa3612eeb3ce0cbcc1c76fba0dc666b7390dc3/src/usr/lib/alternc/generate_certbot.php#L35

$is_vhost[$type]=($data["only_dns"]==0 && $data["need_dns"]==0);
  • La manière trouvée pour ne pas avoir les sous-domaines autodiscover et autoconfig repris dans la liste des sous-domaines où on doit gérer un certificat

https://github.com/AlternC/alternc-certbot/blob/04fa3612eeb3ce0cbcc1c76fba0dc666b7390dc3/src/usr/lib/alternc/generate_certbot.php#L88

if (isset($sub_domain['sub_domain']["certificate_id"])) {
  • sub_domain au lieu de domain

https://github.com/AlternC/alternc-certbot/blob/04fa3612eeb3ce0cbcc1c76fba0dc666b7390dc3/src/usr/lib/alternc/generate_certbot.php#L94

if ($ssl->fqdnmatch($current["fqdn"],$sub_domain["sub_domain"]["fqdn"])) {
  • fqdnmatch avec un m minuscule

https://github.com/AlternC/alternc-certbot/blob/04fa3612eeb3ce0cbcc1c76fba0dc666b7390dc3/src/usr/lib/alternc/generate_certbot.php#L97

if ($current["validstartts"]<time()
  • changement de > vers <
@camlafit
Copy link
Collaborator

Bonjour

Je ne comprends pas la proposition. Est ce 3 patches ou un seul est unique patch ?
Ne pas hésiter à proposer autant de PR que nécessaire pour la lisibilité des correctifs.

@quenenni
Copy link
Author

4 lignes dans le script où il y a une faute

@kienanstewart
Copy link
Contributor

Pour le premier point, je ne crois pas que celà est souhaité: il y a des vhosts apache qui sont créés pour ces entrées, avec le SSL activé.

kienanstewart pushed a commit to Koumbit/alternc-certificate-provider-letsencrypt that referenced this issue May 24, 2019
kienanstewart pushed a commit to Koumbit/alternc-certificate-provider-letsencrypt that referenced this issue May 24, 2019
kienanstewart pushed a commit to Koumbit/alternc-certificate-provider-letsencrypt that referenced this issue May 24, 2019
@kienanstewart
Copy link
Contributor

J'ai fait un PR qui inclus les changements pour tout sauf le premier point : #50

@quenenni
Copy link
Author

Ha oui. Tu as raison pour le point 1. J'ai loupé ce côté là.

Je ne savais pas que c'était une requête GET pour récupérer les données de l'autodiscover.
Mais donc, oui, le certif est nécessaire.

Le script avait une erreur lors de leur création car à chaque exécution il ré-essayait des les créer.
J'ai fait le tour des certifs créés dans /var/lib/alternc/ssl/private/ et aucun ne correspond à un autoconfig ou autodiscover.
Je vois aussi que dans /var/lib/alternc/apache-vhost/vhosts_all.conf, tous les vhost pour autdiscover en 443 pointent vers le certif 1.pem.

Je vais essayer de trouver pourquoi ça ne fonctionnait pas.

Merci pour le PR.

camlafit added a commit that referenced this issue Jul 23, 2019
…tificates

Fixes #43 and #48: Option to limit requested certificates
@AlterncBot
Copy link

Hello @quenenni

Est ce qu'on peut clôturer ce ticket. Il me semble qu'on est bon maintenant.

Merci à toi

camlafit added a commit that referenced this issue Nov 18, 2021
* Correct packaging system
 * 0.0.15 was always done with fpm and not debuild
* Use travis to build pacakge
 * Package is build on each tag push
 * Nightly package is done on each master commit
* Provide package on github
 * bintray service is removed
* Renew only outdated or missing certificates
* Add option to manage specific certificates group
* Better support certbot (acme protocol)

Solves :
  * #72 #71 : Provide nightly build
  * #69 #65 : Finalize 0.0.15 and remove fpm for debuild
  * #67 #66 : Bintray service is removed
  * #54 #53 : Fix typo
  * #50 #48 : Fix php error
  * #50 #43 : Add an option to generate specific certificate (system, user, all)
  * #46 #45 : Use acme-v02 and acme-v01
  * #36 #23 : Fix php notice
  * #38 #37 : be silent if all done , add erbosity mode
  * #40 #39 : generate system certficate before user domains
  * #42 #41 : restore missing file by #30
  * #33     : Fix php warning
  * #26     : add missing build dependencies
  * #25 #24 : clean some files during build
  * #30 #29 : generate cert on sub domain
camlafit added a commit that referenced this issue Nov 22, 2021
* Correct packaging system
 * 0.0.15 was always done with fpm and not debuild
* Use travis to build pacakge
 * Package is build on each tag push
 * Nightly package is done on each master commit
* Provide package on github
 * bintray service is removed
* Renew only outdated or missing certificates
* Add option to manage specific certificates group
* Better support certbot (acme protocol)

Solves :
  * #72 #71 : Provide nightly build
  * #69 #65 : Finalize 0.0.15 and remove fpm for debuild
  * #67 #66 : Bintray service is removed
  * #54 #53 : Fix typo
  * #50 #48 : Fix php error
  * #50 #43 : Add an option to generate specific certificate (system, user, all)
  * #46 #45 : Use acme-v02 and acme-v01
  * #36 #23 : Fix php notice
  * #38 #37 : be silent if all done , add erbosity mode
  * #40 #39 : generate system certficate before user domains
  * #42 #41 : restore missing file by #30
  * #33     : Fix php warning
  * #26     : add missing build dependencies
  * #25 #24 : clean some files during build
  * #30 #29 : generate cert on sub domain
camlafit added a commit that referenced this issue Nov 22, 2021
* Correct packaging system
 * 0.0.15 was always done with fpm and not debuild
* Use travis to build pacakge
 * Package is build on each tag push
 * Nightly package is done on each master commit
* Provide package on github
 * bintray service is removed
* Renew only outdated or missing certificates
* Add option to manage specific certificates group
* Better support certbot (acme protocol)

Solves :
  * #72 #71 : Provide nightly build
  * #69 #65 : Finalize 0.0.15 and remove fpm for debuild
  * #67 #66 : Bintray service is removed
  * #54 #53 : Fix typo
  * #50 #48 : Fix php error
  * #50 #43 : Add an option to generate specific certificate (system, user, all)
  * #46 #45 : Use acme-v02 and acme-v01
  * #36 #23 : Fix php notice
  * #38 #37 : be silent if all done , add erbosity mode
  * #40 #39 : generate system certficate before user domains
  * #42 #41 : restore missing file by #30
  * #33     : Fix php warning
  * #26     : add missing build dependencies
  * #25 #24 : clean some files during build
  * #30 #29 : generate cert on sub domain
camlafit added a commit that referenced this issue Dec 2, 2021
* Correct packaging system
 * 0.0.15 was always done with fpm and not debuild
* Use travis to build pacakge
 * Package is build on each tag push
 * Nightly package is done on each master commit
* Provide package on github
 * bintray service is removed
* Renew only outdated or missing certificates
* Add option to manage specific certificates group
* Better support certbot (acme protocol)

Solves :
  * #72 #71 : Provide nightly build
  * #69 #65 : Finalize 0.0.15 and remove fpm for debuild
  * #67 #66 : Bintray service is removed
  * #54 #53 : Fix typo
  * #50 #48 : Fix php error
  * #50 #43 : Add an option to generate specific certificate (system, user, all)
  * #46 #45 : Use acme-v02 and acme-v01
  * #36 #23 : Fix php notice
  * #38 #37 : be silent if all done , add erbosity mode
  * #40 #39 : generate system certficate before user domains
  * #42 #41 : restore missing file by #30
  * #33     : Fix php warning
  * #26     : add missing build dependencies
  * #25 #24 : clean some files during build
  * #30 #29 : generate cert on sub domain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants