-
Notifications
You must be signed in to change notification settings - Fork 0
Differences between XnatInstaller and OmeroInstaller for creating self-signed SSL certificates #1
Comments
This would appear to be a mistake in
I appreciate that this looks confusing, but in
Probably not. In
In |
thanks for clarifying - I think these issues are all addressed by the current version of this role |
As mentioned in UCL-MIRSG/ansible-role-postgresql#1 (comment), there are several differences in the way XnatInstaller and OmeroInstaller handle the creation of self-signed SSL certificates. These differences will need to be accounted for when creating this role.
However, there are also some lower-level differences that I'm unsure how to handle here:
When generating an OpenSSL CSR,
XnatInstaller
sets the common name toxnat_db.host
for the server certificate andxnat_web_server.host
for the client certificate. However,OmeroInstaller
sets both the server certificate and client certificate CSR common names toomero_db.host
. Should the same common name be used for both the db and web servers, or shouldomero_web.host
be used for the client certificate?In
XnatInstaller
, thedb
host has a variablepostgres.ssl_client_cert_file
that is the path/var/lib/pgsql/certs/root.crt
. InOmeroInstaller
, thedb
host has this same path assigned to a different variable (postgres.ssl_ca_file
). Which variable name is better to use -postgres.ssl_client_cert_file
orpostgres.ssl_ca_file
?After creating the client certificate,
XnatInstaller
changes the owner, group, and permissions of the pk8 file. However,OmeroInstaller
doesn't change these values. Do they need to be changed in this SSL role?XnatInstaller
copies the server certificate to the client and the client certificate to the server.OmeroInstaller
does this too, but it also copies thessl_key_file
,ssl_cert_file
, andssl_pk8_file
from the server to the client and thessl_key_file
andssl_cert_file
from the client to the server. Do these extra files need to be copied across?XnatInstaller
sets permissions tomode: 700
for the certificates directory andmode: 400
for the key, certificate, and pk8 files.OmeroInstaller
sets permissions tomode: 755
for the certificates directory and doesn't explicitly set permissions for the files. Do the permissions need to be set as inXnatInstaller
?The text was updated successfully, but these errors were encountered: