Skip to content

SSL\TLS usage #474

Closed Answered by Havret
nazar4k asked this question in Q&A
Jan 2, 2024 · 1 comments · 6 replies
Discussion options

You must be logged in to vote

Hi @nazar4k,

Here's a quick guide to setting up SSL/TLS in ArtemisNetClient:

First, create an endpoint with SSL/TLS enabled by setting the scheme to Scheme.Amqps:

var endpoint = Endpoint.Create("localhost", 5672, "guest", "guest", scheme: Scheme.Amqps);

Next, configure your ConnectionFactory with these SSL settings (feel free to adjust them as needed):

var connectionFactory = new ConnectionFactory
{
    SSL =
    {
        ClientCertificates = null,
        Protocols = SslProtocols.Tls13,
        CheckCertificateRevocation = false,
        RemoteCertificateValidationCallback = null,
        LocalCertificateSelectionCallback = null
    }
};

This sets up the SSL properties of the connection…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@nazar4k
Comment options

@Havret
Comment options

@nazar4k
Comment options

@nazar4k
Comment options

@Havret
Comment options

Answer selected by nazar4k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants