Open bjesus opened 2 years ago
Is there a way to provide a certificate?
Currently? No.
But I'm going to add it
Ah okay! The error message made me think like I'm misunderstanding how to set the certificate. Glad to hear it will be added!
Is there a rough timeframe for this?
I'm currently implementing a gemini client library in python, Do you want the code if i can make it work with certs? Maybe it helps you.
Made it work in my python library... basically:
context: ssl.SSLContext = ssl.create_default_context()
context.check_hostname = False
def get(self, url: str, cert: str = None, key: str = None, verify_certs: bool = True) -> GeminiResponse:
if cert is not None and key is not None:
self.context.load_cert_chain(cert, key)
Try to find if there's anything similar in rust: https://docs.python.org/3/library/ssl.html#ssl.create_default_context
The biggest problem I have right now is not technical, it's that I don't have enough time to do everything.
Would you consider contributions? I only ask because I'm not very experienced with networks, but I could try to contribute.
If anyone can provide a working implementation, I will gladly accept it and merge it.
Going to a Gemini website that requires a certificate (e.g. gemini://feeds.drewdevault.com) currently just shows "Error: A certificate is required to access this page".
Is there a way to provide a certificate?