Some permissions fixes on certificates for working together with foreman-proxy and various small other changes:

* Introduced group parameter to be used by external modules
* Small typo fix
* Small syntax/style fix.