getssl icon indicating copy to clipboard operation
getssl copied to clipboard

Documentation updates

Open bpa2016 opened this issue 9 years ago • 12 comments

Thanks for a great script and support.

Certificates that come from the server have different extension than the documentation. SSLCertificateFile xyz.com.pem SSLCertificateKeyFile xyz.com_K_C.pem SSLCACertificateFile xyz_chain.pem

Also, nice to mention that even though your main domain is xyz.com, you need to specify www.xyz.com in the .cfg file inside the domain folder with 2 ACL files.

Regards,

Subhankar Ray

bpa2016 avatar Jan 04 '17 18:01 bpa2016

Hi,

Thanks for your feedback.

When you are referring to the "documentation" and SSLCertificateFile, SSLCertificateKeyFile and SSLCACertificateFile I assume you are referring to apache.

These files are actually just text files, and can have almost any extension - they are basically the same files.

Re the domain and adding www. in the SANS and ACL .... the documentation currently says

SANS="" Subject Alternative Name: The default is blank, but can be any list of alternate domains you want on the same certificate e.g. SANS="www.example.com, sub.example.com, www.sub.example.com" You should not include the primary domain in the SANS list ( you would typically just have www.domain.com in the SANS list). If you have a long list, you can place over multiple lines with either

SANS="domain1.com,\
domain2.com,\
domain3.com"

or

SANS="domain1.com,"
SANS+="domain2.com,"
SANS+="domain3.com" 

In addition, if you used "-c" to create the config file it would have added the www info the config file by default.

Can you suggest an improvement ?

ghost avatar Jan 04 '17 19:01 ghost

For example, I would change,

#DOMAIN_CERT_LOCATION="ssh:server5:/etc/ssl/domain.crt" #DOMAIN_KEY_LOCATION="ssh:server5:/etc/ssl/domain.key"

to

#DOMAIN_CERT_LOCATION="ssh:server5:/etc/ssl/domain.pem" #DOMAIN_KEY_LOCATION="ssh:server5:/etc/ssl/domain.pem"

The files that were created (by the script), and that worked are the .pem files. There were .crt files (that were created) did not work for me.

bpa2016 avatar Jan 04 '17 19:01 bpa2016

Can you tell me what your operating system is and apache version ?

The challenge ( from my perspective) is it depends on what your web server is as to what the default names are.

In the apache documentation (http://httpd.apache.org/docs/current/mod/mod_ssl.html ) the examples they provide are;

SSLCertificateFile "/usr/local/apache2/conf/ssl.crt/server.crt" SSLCertificateKeyFile "/usr/local/apache2/conf/ssl.key/server.key"

so I've used the same extensions as per the apache documentation ( which is why my confusion and asking what your OS / Webserver is ).

ghost avatar Jan 04 '17 19:01 ghost

Server version: Apache/2.2.16 (Debian) +ispcp Debian GNU/Linux 6.0 \n \l

bpa2016 avatar Jan 04 '17 20:01 bpa2016

Thanks.

As far as I can tell from a quick check of the documentation this seems to be a limitation due to ispcp rather than anything else. Since more people use a Apache of nginx without ispcp I'd prefer to keep the defaults correct for the majority. I will have a look and see if it's sensible to check from within the script if it's possible / easy to determine what webserver / control panel is being used and change the defaults.

ghost avatar Jan 04 '17 20:01 ghost

I think I might have an easier more long term proposal for you. :)

A flag in the domain_template file that says apache_ispcp yes or no.

Then we simply publish as pem as opposed to key/crt.

Since the file names really have little to do with it and they are defined in the domain key, cert, and ca locations.

Could also use a flag to "deliver" as pem as opposed to the standards.

Could be CERT_FORMAT=crt|pem|<future_expansion>

On Jan 4, 2017, at 1:45 PM, serverco [email protected] wrote:

Thanks.

As far as I can tell from a quick check of the documentation this seems to be a limitation due to ispcp rather than anything else. Since more people use a Apache of nginx without ispcp I'd prefer to keep the defaults correct for the majority. I will have a look and see if it's sensible to check from within the script if it's possible / easy to determine what webserver / control panel is being used and change the defaults.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

jbeima avatar Jan 04 '17 20:01 jbeima

Good point, There will probably be many 100's of different combinations how many should the script try and guess the correct defaults for ? or long term, should there be a additional component ( maybe GUI ) which is more intelligent about sorting out all the settings for those who need it ?

ghost avatar Jan 04 '17 21:01 ghost

Thanks.. however, it is not a great problem, because your script is already getting/generating all the .pem files. It is the documentation that misguided me to ignore them and convince me to use the .crt files (that were also generated)

One last question, your script has -u option to upgrade itself. Can you reassure us that it will be maintained and you have a way to avoid any kind of hacking?

bpa2016 avatar Jan 04 '17 21:01 bpa2016

Thanks. Yes, it's the documentation within the getssl.cfg configuration file though ( rather than on the site here) .... so it was more if I could be helpful and modify that depending on the system to be more accurate / helpful.

In answer to your questions.

Can you reassure us that it will be maintained and you have a way to avoid any kind of hacking?

I fully intend that this will be maintained, yes. If I get run over by the proverbial bus, then that will be a challenge personally, however I've put things in place to ensure that the maintenance duties should be passed on.

In terms of avoiding any hacking / problems. Yes, as much as I can. At the moment any updates require approval by me, and I run it on a range of my servers for live sites ( so I have a very strong personal interest in making sure that is the case). I will look at adding a code checksum and happy to provide a signed version. If you have any concerns, I'd suggest setting up a "getssl" user that it runs under, which only has permission to modify the keys and reload your webserver. That way in the unlikely event that anything was hacked - it can not do any damage to your server.

ghost avatar Jan 04 '17 21:01 ghost

Or, of course, the obvious answer of don't auto-upgrade, and just manually upgrade if there are new feature you want to use.

ghost avatar Jan 04 '17 21:01 ghost

Just my 2 cents, you can create an Apache incubator project. Eventually, this can go hand-in-hand with Apache webserver development.
http://apache.org/foundation/how-it-works.html#incubator

bpa2016 avatar Jan 04 '17 21:01 bpa2016

A good point, thanks.

It's also maintained in some linux repositories - such as https://aur.archlinux.org/packages/getssl-git/

ghost avatar Jan 04 '17 21:01 ghost