How to provide certificate chain in SSLStream AuthenticateAsServer ()?

I am using SSL server in C # using standard SSLStream.

Everything is still fine, but - AuthenticateAsServer accepts only one certificate as a parameter, while I have to provide a complete chain (3 of them).

I built a PKCS12 structure with all the certificates (using Mono.Security), then call new X509Certificate2(pkcs12.GetBytes()), but nonetheless, only one is provided to the client.

So the question is, how can this be done?

Thank!

PS: I need a portable solution that will work on both Mono and .NET on Windows.

+5
source share
1 answer

. - SslStream ( - ).

: Authority Information Access URI, .

?

0

All Articles