.net的S / MIME库? [英] S/MIME libraries for .net?

查看:226
本文介绍了.net的S / MIME库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用C#(如RFC 2633S / MIME版本3消息规范和RFC 3335中所述)创建S / MIME消息。
我可以找到唯一的S / MIME库是商业图书馆( http:/ /www.example-code.com/csharp/smime.asp ),这对我们没有好处。

I need to create S/MIME messages using C# (as specified in RFC 2633, "S/MIME Version 3 message specification", and RFC 3335). The only S/MIME library I can find is a commercial library (http://www.example-code.com/csharp/smime.asp), which is no good for us.

有没有现有的库可以完成创建S / MIME消息,特别是.p7s文件?

Are there any existing libraries to accomplish creating S/MIME messages, and in particular, .p7s files?

我有所有加密和签名的元素需要进入这个文件,但我想创建.p7s文件,而不用RFC文档帮助我自己的图书馆。

I have all the encrypted and signed elements that need to go into this file, but I'd like to create the .p7s file without handrolling my own library with the aid of the RFC document...

编辑:
我发现另一个商业S / MIME库,它仍然没有对我们的要求很好
看起来越来越像我将要转载一个S / MIME库,这是悲伤的。
.net中的每个人都需要使用商业封闭的源库实现S / MIME?

I've found another commercial S/MIME library, which is still no good for our requirements. It's looking more and more like I'm going to have to hand roll a S/MIME library, which is sad. Is everyone in .net who needs S/MIME using commercial, closed source libraries to do it?

推荐答案

我写了我自己的MIME库,支持S / MIME,称为 MimeKit ,它比基于System.Net的任何东西更加强大。邮件被严重破坏。

I've written my own MIME library with support for S/MIME called MimeKit which is far more robust than anything based on System.Net.Mail which is horrendously broken.

它支持原始8位头文件,rfc822组地址,从地址头(To / Ccc / Bcc / etc)中的rfc822注释中删除名称,解析mbox格式的消息线轴(包括支持基于内容长度的SunOS格式),它比任何其他C#MIME解析器快一个数量级,因为它是基于字节流而不是基于TextReader的(也是如何它支持原始8位头文件比任何其他C#解析器更好)。

It supports raw 8bit headers, rfc822 group addresses, scraping names out of rfc822 comments in address headers (To/Ccc/Bcc/etc), parsing mbox formatted message spools (including support for the Content-Length-based SunOS format) and it's an order of magnitude faster than any other C# MIME parser out there because it is byte-stream based instead of TextReader-based (which is also how it supports raw 8bit headers much better than any other C# parser).

这篇关于.net的S / MIME库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆