💾 Archived View for bbs.geminispace.org › s › Gemini › 15700 › group captured on 2024-03-21 at 15:07:05. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
Examples of handling TOFU and client certificates with mbedTLS (in C)? — As a rite of passage I've decided to make a Gemini client in C, and as I'm new to SSL/networking, I have no idea how to handle TOFU or client certificates with mbedTLS. Has anyone else specifically made a gemini client with it? Or would you recommend that I try to figure out another SSL library? I avoided OpenSSL because the documentation seemed incomprehensible, but mbedTLS' documentation isn't much better. As an aside, I...
💬 1 comment · 13 hours ago · #certificates #client_certificates #encryption
Valid Gemini response with invalid media type? — Valid Gemini response with invalid media type? This is an interesting URL: [gemini link] It returns a status code 20, and a META of "text/plain\n" with a literal new line. A \r\n follows this, so per the Gemini spec, the META field contains a trailing \n character. The Gemini spec says that "For [SUCCESS status] responses, <META> is a MIME media type as defined in RFC 2046." RFC-2046 defines the media type as part of the grammar for a `...