Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include WindowsSecureMimeContext in .NET Standard 2.x build #600

Merged
merged 1 commit into from
Sep 10, 2020

Conversation

kingjan1999
Copy link
Contributor

@kingjan1999 kingjan1999 commented Sep 3, 2020

Using the System.Security.Cryptography.Pkcs package, the WindowsSecureMimeContext and related classes can be used together with .NET Standard. This PR changes the csproj-File for MimeKit, including these classes and the package into the build for .NET Standard 2.0.

There might be some limitations when using this context on Linux / OS X, as the underlying X509Store used for storing / receiving has some limitations. However, at least for my use case (verifying / signing via S/MIME using the OS root certificates; as well as importing certs into the store and using them for en-/decryption), this works fine (using Debian Buster and Ubuntu Focal).

We maybe should add a note concerning this into the docs, but I'd like to hear your thoughts on this first.

Use System.Security.Cryptography.Pkcs in .netstandard2 build
@jstedfast jstedfast merged commit dff2dfc into jstedfast:master Sep 10, 2020
@jstedfast jstedfast added the enhancement New feature or request label Sep 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants