You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code you are referring to is confusing, indeed, and I have anticipated this in the relevant discussion: #135 (comment). This code is a stub of non-existing functionality that is meant to be added in future, but IMO shall not exist in the master branch, for now.
They return the same result right now, but they do output different problems should the function fail.
Installers are different than authenticators and unfortunately only the ApacheConfigurator (installer and authenticator) is implemented. These are based on the IInstaller and IAuthenticator interfaces in letsencrypt/client/interfaces.py. There is supposed to be a "stand-alone" authenticator (previously called NullConfigurator in #63) that does not rely on any webserver implementation that can get certificates by itself, but unfortunately the code hasn't been completed yet. I would also like to support systems that can't solve challenges, but could use the trusted certificate. It should be possible to combine a "stand-alone" authenticator to retrieve a certificate and then automatically install the certificate on a postfix mail server. If someone would like to write such a module. :) The postfix mail server module wouldn't need to know how obtain a certificate, but it could deploy (install) the certificate. This would call for a more generic optimize function where the IInstaller interface object would provide a call to determine its capabilities.
The code was supposed to provide some idea of a hook for another developer's code. For instance, I don't believe it is readily apparent how you might determine whether a usable Apache instance is installed on the system. Another developer would then waste time trying to figure out how to incorporate their code appropriately. I know that the "stand-alone" Authenticator is being worked on... but it isn't complete yet.
I agree with Kuba that this should perhaps be in an open development branch, but I wanted to expose the interface, and I thought another authenticator would be developed by now that would aid in understanding the intent.
I also used the opportunity to start to address #65 as error messages add some clarification to the problems.
I now don't believe the "stand-alone" configurator will be finished within the next week and I can remove the determine_authenticator determine_installer code. There will still be a need to pass an authenticator and installer object to the client. In this case, it would be the same instance of ApacheConfigurator. This may be less confusing... I am not sure.
I do think that the abstraction between the authentication mechanism and the installer is useful though.
Maybe this should be combined into a single function that returns a tuple of (authenticator, installer). I did not spend much time on this particular section, but I wanted to get the idea across that they may differ.
The command line should be able to specify the tools being used (authenticator/installer) but if no options are presented it might be good to see what is installed/running, see what is listening on ports 80/443 and make an appropriate determination about the best way to proceed.
Perhaps an Apache Server that is currently only listening on port 80 would rather have a "stand-alone" authenticator solve challenges on port 443 in order to avoid an extra reload/restart. This configuration would then be (stand-alone, apache).
Let me know what you think. I am open to suggestions.
Activity
kuba commentedon Dec 25, 2014
The code you are referring to is confusing, indeed, and I have anticipated this in the relevant discussion: #135 (comment). This code is a stub of non-existing functionality that is meant to be added in future, but IMO shall not exist in the master branch, for now.
jdkasten commentedon Dec 26, 2014
They return the same result right now, but they do output different problems should the function fail.
Installers are different than authenticators and unfortunately only the ApacheConfigurator (installer and authenticator) is implemented. These are based on the IInstaller and IAuthenticator interfaces in letsencrypt/client/interfaces.py. There is supposed to be a "stand-alone" authenticator (previously called NullConfigurator in #63) that does not rely on any webserver implementation that can get certificates by itself, but unfortunately the code hasn't been completed yet. I would also like to support systems that can't solve challenges, but could use the trusted certificate. It should be possible to combine a "stand-alone" authenticator to retrieve a certificate and then automatically install the certificate on a postfix mail server. If someone would like to write such a module. :) The postfix mail server module wouldn't need to know how obtain a certificate, but it could deploy (install) the certificate. This would call for a more generic optimize function where the IInstaller interface object would provide a call to determine its capabilities.
The code was supposed to provide some idea of a hook for another developer's code. For instance, I don't believe it is readily apparent how you might determine whether a usable Apache instance is installed on the system. Another developer would then waste time trying to figure out how to incorporate their code appropriately. I know that the "stand-alone" Authenticator is being worked on... but it isn't complete yet.
I agree with Kuba that this should perhaps be in an open development branch, but I wanted to expose the interface, and I thought another authenticator would be developed by now that would aid in understanding the intent.
I also used the opportunity to start to address #65 as error messages add some clarification to the problems.
I now don't believe the "stand-alone" configurator will be finished within the next week and I can remove the determine_authenticator determine_installer code. There will still be a need to pass an authenticator and installer object to the client. In this case, it would be the same instance of ApacheConfigurator. This may be less confusing... I am not sure.
I do think that the abstraction between the authentication mechanism and the installer is useful though.
Maybe this should be combined into a single function that returns a tuple of (authenticator, installer). I did not spend much time on this particular section, but I wanted to get the idea across that they may differ.
The command line should be able to specify the tools being used (authenticator/installer) but if no options are presented it might be good to see what is installed/running, see what is listening on ports 80/443 and make an appropriate determination about the best way to proceed.
Perhaps an Apache Server that is currently only listening on port 80 would rather have a "stand-alone" authenticator solve challenges on port 443 in order to avoid an extra reload/restart. This configuration would then be (stand-alone, apache).
Let me know what you think. I am open to suggestions.
ThomasWaldmann commentedon Feb 3, 2015
@mimi89999 close this or is there anything left?
Merge pull request certbot#149 from kappuccino/kappuccino-bower-version