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

Changing SSL certificate in the app does not actually change the certificate, is just replaces it in keytool. #7

Open
benoitg opened this issue Mar 29, 2018 · 2 comments

Comments

@benoitg
Copy link
Member

benoitg commented Mar 29, 2018

This is fine to process an updated LetsEncrypt certificate, but you can't for example actually switch from self signed to LetsEncrypt and vice-versa.

@benoitg
Copy link
Member Author

benoitg commented Mar 29, 2018

Ok, after reading http://download.igniterealtime.org/openfire/docs/latest/documentation/ssl-guide.html it seems OpenFire uses whichever certificate has an alias that matches the XMPP domain.

The problem seems to be that

'-alias ' . $certificate . ' ' .
, for self signed certificates, the alias is set is sys-0-cert.pem , which appears to be the basename returned by the certificate manager.

Parsing get_secure_hostnames() in https://github.com/clearos/app-certificate-manager/blob/4633e0ef620d82072ef19c9f9dba7371f0f9c7ce/libraries/Certificate_Manager.php#L260 just doesn't seem like how it's meant to be used.

@pcbaldwin I could use some advice.

@benoitg
Copy link
Member Author

benoitg commented Apr 6, 2018

Seems we need to implement a hook like here https://certbot.eff.org/docs/using.html#re-creating-and-updating-existing-certificates

Main issue is we don't want to pull all private ssl keys to openfire's user permissions, only those associated with an openfire domain.

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