Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Self-signed certificate notice is being displayed without the certificate being generated #4620

Closed
madonius opened this issue Feb 11, 2019 · 7 comments
Labels
z-bug (Deprecated Label)

Comments

@madonius
Copy link

Description

The notice about the self signed certificates is being displayed after the configuration file generation although this was removed in #4509
See:

" %r with corresponding SSL keys and self-signed"

Steps to reproduce

Generate the configuration file

Version information

  • Homeserver: local test environment
  • Version: v0.99.0

  • Install method: Docker

  • Platform: Docker
@richvdh
Copy link
Member

richvdh commented Feb 11, 2019

I think this will be fixed by #4619

@richvdh richvdh closed this as completed Feb 11, 2019
@madonius
Copy link
Author

This is not regarding the docker-specific templating. Rather we just used docker to generate a config file, we used

python -m synapse.app.homeserver \
    --server-name my.domain.name \
    --config-path homeserver.yaml \
    --generate-config \
    --report-stats=no

As described in https://github.com/matrix-org/synapse/blob/master/INSTALL.md

@madonius
Copy link
Author

cc @jcgruenhage

@richvdh
Copy link
Member

richvdh commented Feb 12, 2019

in that case, can you give more details about the repro steps and what symptoms you actually see?

@jcgruenhage
Copy link
Contributor

jcgruenhage commented Feb 12, 2019

jcgruenhage  ~  docker run -it --rm --entrypoint /bin/sh docker.io/matrixdotorg/synapse
/ # python -m synapse.app.homeserver \
>     --server-name my.domain.name \
>     --config-path homeserver.yaml \
>     --generate-config \
>     --report-stats=no
A config file has been generated in 'homeserver.yaml' for server name 'my.domain.name' with corresponding SSL keys and self-signed certificates. Please review this file and customise it to your needs.
If this server name is incorrect, you will need to regenerate the SSL certificates

We just used docker to get a throwaway env with a synapse install quickly.
We ran a shell in the container, in which we used synapses good old --generate-config option to generate a config file.
As you can see, after the file was generated, we got a notice about a self signed certificate being created, which is not the case though.

@richvdh
Copy link
Member

richvdh commented Feb 12, 2019

Right, the warning we are complaining about is this one:

 jcgruenhage  ~  docker run -it --rm --entrypoint /bin/sh docker.io/matrixdotorg/synapse
/ # python -m synapse.app.homeserver \
>     --server-name my.domain.name \
>     --config-path homeserver.yaml \
>     --generate-config \
>     --report-stats=no
A config file has been generated in 'homeserver.yaml' for server name 'my.domain.name' with corresponding SSL keys and self-signed certificates. Please review this file and customise it to your needs.
If this server name is incorrect, you will need to regenerate the SSL certificates

@neilisfragile
Copy link
Contributor

Looks fixed by #4625

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
z-bug (Deprecated Label)
Projects
None yet
Development

No branches or pull requests

4 participants