Skip to content

Dispose X509Certificate2 #4969

@roji

Description

@roji

We instantiate X509Certificate2 as part of physical connection open involving SSL/TLS, but we only dispose these if any exception occurs. To be on the safe side, dispose the certificate only when the physical connection shuts down, just in case it's needed at some point by SslStream for renegotiation or similar.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions