subspacecommunity / subspace

A fork of the simple WireGuard VPN server GUI community maintained
MIT License
1.8k stars 131 forks source link

SSL_ERROR_INTERNAL_ERROR_ALERT #231

Open com2 opened 1 year ago

com2 commented 1 year ago

Describe the bug entrypoint.sh errors when starting the image: Line unrecognized: `PrivateKey=' Configuration parsing error

To Reproduce Steps to reproduce the behavior:

  1. $ docker create \ --name subspace \ --restart always \ --network host \ --cap-add NET_ADMIN \ --volume /usr/bin/wg:/usr/bin/wg \ --volume /data/subspace:/data \ --volume /lib/aarch64-linux-gnu/libc.so.6:/lib/aarch64-linux-gnu/libc.so.6:ro \ --volume /lib/ld-linux-aarch64.so.1:/lib/ld-linux-aarch64.so.1:ro \ --env SUBSPACE_HTTP_HOST="sub.domain.net" \ --env SUBSPACE_NAMESERVER="1.1.1.1" \ subspacecommunity/subspace:arm64v8-v1.5.0
  2. $ docker start subspace; docker logs subspace >& subspace.log ; tail subspace.log
    • export 'SUBSPACE_IPV4_CIDR=24'
    • ip addr add 10.99.97.1/24 dev wg0
    • '[[' 1 -ne 0 ]]
    • echo fd00::10:97:0/112
    • cut -d / -f2
    • export 'SUBSPACE_IPV6_CIDR=112'
    • ip addr add fd00::10:97:1/112 dev wg0
    • wg setconf wg0 /data/wireguard/server.conf Line unrecognized: `PrivateKey=' Configuration parsing error

Expected behavior Start without error and working web access.

Docker host server :

com2 commented 1 year ago

When looked in /data/subspace/wireguard/ both server.private and server.public are empty (zero length), but the files and the wireguard folder exist. So it turns out that something was written in previous attempts. I stop de image, delete the wireguard folder and start it again. Ports 80 and 443 are open now, the web service seems to be running, but now something might have gone wrong with Let's Encrypt and the browser tells me:

Secure Connection Failed

An error occurred during a connection to zibaliqpos.serverclone.net. Peer reports it experienced an internal error.

Error code: SSL_ERROR_INTERNAL_ERROR_ALERT

A link to Mozilla support lists the possible reasons.