Closed tinywombat765 closed 3 years ago
Hi! I can't say that I've seen that error before but my instinct is that something is abnormal with your TLS certificate. Could you post or link to an example of a certificate/key that your server is generating?
Here are the certs I'm using
It may have something to do with me using rustls instead of openssl. No other client has had issues that I know of though.
When I run it again my public site benaaron.dev that's running my server I get this error instead.
[Errno -2] Name or service not known
That seems to be that case with any public gemini server.
Ahh, it looks like it's caused by the client not sending SNI information. This testing utility was written before SNI was changed to be mandatory in the gemini spec.
~/D/certs jetforce-client gemini://benaaron.dev 408ms Tue Nov 17 15:32:41 2020
Traceback (most recent call last):
File "/usr/local/bin/jetforce-client", line 8, in <module>
sys.exit(run_client())
File "/usr/local/lib/python3.8/site-packages/jetforce_client.py", line 64, in run_client
fetch(args.url, args.host, args.port, args.tls_enable_sni)
File "/usr/local/lib/python3.8/site-packages/jetforce_client.py", line 26, in fetch
with context.wrap_socket(sock, server_hostname=sni) as ssock:
File "/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/ssl.py", line 500, in wrap_socket
return self.sslsocket_class._create(
File "/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/ssl.py", line 1040, in _create
self.do_handshake()
File "/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/ssl.py", line 1309, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: TLSV1_ALERT_ACCESS_DENIED] tlsv1 alert access denied (_ssl.c:1123)
! ~/D/certs jetforce-client gemini://benaaron.dev --tls-enable-sni 254ms Tue Nov 17 15:32:45 2020
20 text/gemini
\```
___
\ \ ____ _ ██████
\ \ | __ ) ___ _ __ / \ __ _ _ __ ___ _ __ ██████
\ \ | _ \ / _ \ '_ \ / _ \ / _` | '__/ _ \| '_ \ ██████
/ / | |_) | __/ | | | / ___ \ (_| | | | (_) | | | | ██████
/ / |____/ \___|_| |_| /_/ \_\__,_|_| \___/|_| |_| ██████
/__/ ██████
\```
# Ben Aaron's Geminispace
Hello fellow spacefarers! My name is Ben Aaron Goldberg and this is my gemini capsule. I like FOSS, Rust, Linux, and being mad at software.
Here are things I've written:
=> https://sr.ht/~zethra/stargazer/ stargazer - A gemini server
=> https://sr.ht/~zethra/license/ license - A tool to easily add a license to your project
=> https://sr.ht/~zethra/poki-launcher/ poki-launcher - An application launcher for Linux
I plan to start a gemlog here at some point. Let's see if I get to it 😅.
## My Links
=> https://sr.ht/~zethra/ Sourcehut: ~zethra
=> mailto:ben@benaaron.dev Email: ben@benaaron.dev
=> https://fosstodon.org/@zethra Mastondon: @zethra@fosstodon.org
=> gemini://benaaron.dev/pubkey.txt GPG Key: EF9570D2
## License
The content of this site is licensed under CC-BY-SA-4.0. The code for this site is licensed under MIT.
Awesome! glad you figured it out. Where both errors caused by this?
I just pushed a fix up, try it again when you get a chance
That problem is fixed. I'm receiving a few errors on some of tests even though they're passing. Like:
[ConcurrentConnections] Server should support concurrent connections
Attempting to establish two connections
Opening socket 1
Opening socket 2
Closing socket 2
Closing socket 1
✓ Concurrent connections supported
ERROR - Connection reset by peer (os error 104)
ERROR - Error closing stream: Broken pipe (os error 32)
ERROR - Broken pipe (os error 32)
ERROR - Error closing stream: Broken pipe (os error 32)
If you're interested.
Thanks for the heads up! Interestingly I don't see those errors when I point to your server.
So those error were actually my server running in the background. Ooops
So I'm writing a gemini server and someone an the mailing list recommended I use this tool for testing it. When running the tests I get the error
TLSV1_ALERT_ACCESS_DENIED
on bunch of the tests. It's quite possible that this is an issue with my server but the error message is bewildering so maybe you could give some insight.My server code of reference https://sr.ht/~zethra/stargazer/