Re: TLS-Server with Let’s Encrypt

Sam Varshavchik <[email protected]>
Newsgroups gmane.network.gnutls.general
Message-ID <[email protected]>
Mario Lombardo writes:

> Hi Sam,
>
>
> thank you for your message. What about the existing sessions  
> (gnutls_session_t)? Can I call gnutls_credentials_clear() once the handshake  
> is finished and keep the connection for this session established? I believe  
> it is not safe to gnutls_certificate_free_credentials() as long as there are  
> sessions bound to this store, is it?

Presuming there are no multiple thread-related issues, I would expect it to  
be safe. If the library needs it, for some reason, I expect it to make its  
own copy. I find nothing in the public documentation that requires  
credential to exist as long as some session that used them, initially, is  
still around.

> Or is there any other best practice? Can I set other credentials on an  
> existing session (after handshake)?

You can also take the approach of creating a new context for all new  
sessions, and keep the old context, with the old credentials, until all  
existing session which use it go away. I don't believe this is necessary,  
but this is also one possible way to do it.

_______________________________________________
Gnutls-help mailing list
[email protected]
http://lists.gnupg.org/mailman/listinfo/gnutls-help
signature.asc (application/pgp-signature, 801 B)
-----BEGIN PGP SIGNATURE-----

iQIcBAABAgAGBQJbZDWOAAoJEGs6Yr4nnb8lcyMP/3poiczpVaOI6+/kqsFFn/oC
2uphNOwpucy15GDjXOeH7vxRBnfNg3JxaKCFF5d52R+uytezYCWmPMkjROPmthDo
f+NYAL3nstRsl628Ixy3KvyulnU+LrekPom5SMy8N7f0SJoOnUXr1XcR2HbRMRGD
ZH+mXe8UPOCf80sXfwd1HuatcsW+ZSHojGc3wrl04GYcorxcdeIdStR1KE0j+VeV
vdhB2hkc5zLIWVJjI4zeQRUcr5scoNc8D2NYMJ/Nm+01J87DA4409Q+3nZerBQYJ
gfy12ZxcE85MUJd1biN7Buhn/smS0HFimCFw+5ixfbCLFp/5Nm+aOI/kdg2/RpQU
0En/hURQ3ttEEN5Qrq+0p4/mSRjfM37i4zedSnvTOrPLu/Dg9DnkTuuEoUTgiDGw
3twTtS+uNPaGOaxBG5snAyv/bo8uFONE8eupx2GMvmOTW9C7sbBt/spiiBGNfPif
UTMVaJGTkBJOvip2bPeEh2eaJzHgIRzPWt0UasJhaEUbRkwA4zD5KZFwM67eKm6D
rJ3bO9jUlN53loaXMNSxv6G1PyLxaMuDSUNRc0FYJqF2EpbtNyRXix3kJK1aezL3
L/AGElfuDwP5zDcuQ1dQilBfGXfZX2nm5o860sAoErVk1uvRv2wSxaq5NcfigDGG
tD4p9p1CJSQG2SuCiz2N
=XndJ
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.