-
-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't generate self-signed certificates via go run #1759
Comments
This comment was originally posted by @carroarmato0 at matrix-org/dendrite#1759 (comment). I'm getting something different. I first installed all the dependencies running go mod verify in the dendrite folder, but then get:
|
This comment was originally posted by @melroy89 at matrix-org/dendrite#1759 (comment). uh.. why would this package resolve to yggdrasil-network? I you may configured this a a go proxy or something? |
This comment was originally posted by @carroarmato0 at matrix-org/dendrite#1759 (comment). So just like you, I tried to execute go run github.com/matrix-org/dendrite/cmd/generate-keys, but it complained that there's a bunch of dependencies missing. So, I thought I'd use go mod verify, which apparently starts pulling in all the dependencies, except for an issue with yggdrasil-go, which as far as I understand is some kind of crypto communication layer, but the real problem stems from its dependency on the go implementation of wireguard which seems to not be found. |
This comment was originally posted by @carroarmato0 at matrix-org/dendrite#1759 (comment). Interesting, I noticed that if I compile it on my laptop with go1.14.7, it works, but not on another computer with go1.15.5.
|
This comment was originally posted by @carroarmato0 at matrix-org/dendrite#1759 (comment). Turns out that my problem was a way too old version of Git (1.8) @Danger89 could you retry building after pulling in the latest changes in the repo? The devs have made some new commits |
This comment was originally posted by @melroy89 at matrix-org/dendrite#1759 (comment). Sorry, but it's about the docker image. It's unclear from the docs that I need to clone this whole archive just for generating keys. I expect the listed command to work out of the box. |
This comment was originally posted by @carroarmato0 at matrix-org/dendrite#1759 (comment).
Ah yes, I thought so too initially, but the Docker image seems to be hardwired to start the server, and as far as I could tell, the generate-key command is not included (though I didn't look too thoroughly around). |
This comment was originally posted by @melroy89 at matrix-org/dendrite#1759 (comment). Ideally generating the keys should indeed be done via docker. Even then you can still submit the correct go package to a go proxy/package manager. Allowing to run this go command, without docker & without git cloning of the archive. As long as the user has go installed. |
This comment was originally posted by @neilalexander at matrix-org/dendrite#1759 (comment).
... but where this gets complicated is that you would need It's extremely bad news if you can accidentally lose your signing keys, hence why I haven't updated the documentation to do it that way yet. |
This comment was originally posted by @melroy89 at matrix-org/dendrite#1759 (comment). @neilalexander Thanks! This is great news the binary is part of the docker container. maybe also add |
This comment was originally posted by @benyanke at matrix-org/dendrite#1759 (comment). What about something like this? docker run -it --rm --entrypoint="" \
-v $(pwd):/mnt \
matrixdotorg/dendrite-monolith:latest \
/usr/bin/generate-keys \
-private-key /mnt/matrix_key.pem \
-tls-cert /mnt/server.crt \
-tls-key /mnt/server.key It's functionally the same as the |
This issue was originally created by @melroy89 at matrix-org/dendrite#1759.
As stated in the Configuration section of the Docker setup.
Running:
Should give generate the self signed certificates.
But instead the go package can't be found. Are you sure this is the right package name? Showing me:
Regards,
Melroy
The text was updated successfully, but these errors were encountered: