[enh] Variabilize the certification authority - #2308
Conversation
|
|
||
| # For prod | ||
| PRODUCTION_CERTIFICATION_AUTHORITY = "https://acme-v02.api.letsencrypt.org" | ||
| PRODUCTION_CERTIFICATION_AUTHORITY = settings_get("security.certauth.certification_authority_acme_url") |
There was a problem hiding this comment.
This var is only used one time line 540, we probably should call this function only when we really need it.
There was a problem hiding this comment.
So here it's a global settings and not a domain settings.
I imagine it's the good solution to choose a global settings for that
There was a problem hiding this comment.
The function is now called only once, and the settings put into variables.
There was a problem hiding this comment.
Maybe we should do something with this
There was a problem hiding this comment.
Variabilized. We'll have to verify how different CA write their name in their certificates.
There was a problem hiding this comment.
I guess this should be adapted too
There was a problem hiding this comment.
Variabilized. Later we may want to move the file into another directory (e.g. /etc/yunohost/cert/*something*/) but it is a breaking change that needs to be handled.
|
|
I don't know if it's the good place to speak about this, but I did some test, and acme client used by Yunohost is mostlly used for LE certificate and is not really good for other CA (for example CA who uses ACME AUTH). The best would be to use certbot-python... but it will imply a lot of changes. |
|
Previous comment : only concerns alternative CA who handles ACME certs. |
|
I think I replaced "Let's Encrypt"/"letsencrypt" everywhere it was needed, except in the |
|
To handle the CA change, how about saving the CA settings used to generate a certificate along with it, in it's own
Feedback welcomed on this point. |
The problem
YunoHost/issues#2552
Solution
This PR variabilizes the certification authority. This first step will allow a simple modification to choose an alternative certification authority.
PR Status
Work in progress
TODO
-> don't forget translations
-> to be discussed : shall we try to renew certs issued by an old CA with the old CA, or delete them and request new certs to the new CA ?
How to test