passbolt_install_scripts icon indicating copy to clipboard operation
passbolt_install_scripts copied to clipboard

Passbolt install script fails when key material is already in /etc/ssl

Open WilliamDEdwards opened this issue 4 years ago • 1 comments

Not sure if this is the right place for Debian package installation issues.

In passbolt-ce-server.postinst lines 186 and 187, we find:

cp "${nginx_values[cert_file]}" "$PASSBOLT_SSL_CERT_PATH"`
cp "${nginx_values[cert_key_file]}" "$PASSBOLT_SSL_KEY_PATH"

cp returns a non-zero exit code when source and destination file is the same. Ergo, when the specified certificate chain and/or private key is already in $PASSBOLT_SSL_CERT_PATH or $PASSBOLT_SSL_KEY_PATH (which is a good place for SSL certificates, so this is very likely), the postinst script fails with no indication of any issues, except for cp output.

WilliamDEdwards avatar May 08 '21 13:05 WilliamDEdwards

Just ran into this issue again with Passbolt Pro...

WilliamDEdwards avatar Jan 25 '22 12:01 WilliamDEdwards