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

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

问题描述

我需要创建一个使用C#S / MIME的消息(如RFC 2633规定,S / MIME三版报文规范,和RFC 3335)。
唯一的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.

它支持原8bit的标题,RFC822组地址,刮名出在地址头RFC822意见(到/ CCC /密件抄送/等),解析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).

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

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