Skip to content
This repository has been archived by the owner on Dec 10, 2022. It is now read-only.

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

Open
WilliamDEdwards opened this issue May 8, 2021 · 1 comment

Comments

@WilliamDEdwards
Copy link

WilliamDEdwards commented May 8, 2021

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
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant