[Bug 265800] net/gemserv: Update to 0.6.6

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 17 Aug 2022 08:00:19 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265800

--- Comment #6 from Evilham <contact@evilham.com> ---
Hunch: you are using RSA keys that are not in PKCS8 format and we just found a
newly introduced bug in gemserv :-).

Can you confirm that your key's PEM headers look like this?

    -----BEGIN RSA PRIVATE KEY-----
    ...
    -----END RSA PRIVATE KEY-----

If that's the case, and removing "RSA " (aka, leaving only "BEGIN/END PRIVATE
KEY") should get you a PKCS8 formatted key that ought to work.

Basing this hunch on:
https://git.sr.ht/~int80h/gemserv/tree/v0.6.6/item/src/lib/tls.rs#L37
And:
https://docs.rs/rustls-pemfile/0.2.1/rustls_pemfile/fn.pkcs8_private_keys.html

If this is confirmed maybe we can use:
https://docs.rs/rustls-pemfile/0.2.1/rustls_pemfile/fn.rsa_private_keys.html
To join that with the PKCS8 ones and publish 0.6.6 in ports with the patch,
while submitting it upstream.

-- 
You are receiving this mail because:
You are the assignee for the bug.