signing mails (smime / pkcs7)

polaris · · 1484 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>Anyone around who signed mails with go?</p> <p>I tried github.com/fullsailor/pkcs7, but my mail client can&#39;t verify the result. Comparing the ASN1 structure of the result with a working output from openssl shows significant differences, like including the signed text.</p> <p>And github.com/nullboundary/gocertsigner is a cgo lib which won&#39;t let me cross compile and also panics [on FreeBSD] (cgo argument has Go pointer to Go pointer).</p> <hr/>**评论:**<br/><br/>egonelbre: <pre><p><a href="http://play.golang.org/p/TyLE8UFQGc" rel="nofollow">Shelling out to OpenSSL/LibreSSL</a> will be the easiest solution. Getting anything else properly working across platforms will be several magnitudes of more effort.</p></pre>R2A2: <pre><p>[alternative to S/MIME]: have you considered using openpgp to sign mails? </p> <p>There&#39;s a pure-go implementation by google themselves: <a href="https://godoc.org/golang.org/x/crypto/openpgp" rel="nofollow">https://godoc.org/golang.org/x/crypto/openpgp</a> </p> <p>I haven&#39;t tried it, but it looks pretty well supported:</p> <p><a href="https://godoc.org/golang.org/x/crypto/openpgp#NewEntity" rel="nofollow">https://godoc.org/golang.org/x/crypto/openpgp#NewEntity</a> </p> <p>then:</p> <p><a href="https://godoc.org/golang.org/x/crypto/openpgp#Entity.SignIdentity" rel="nofollow">https://godoc.org/golang.org/x/crypto/openpgp#Entity.SignIdentity</a></p> <p><em>Note that mail clients tend to need a plugin for openpgp</em></p></pre>R2A2: <pre><p>BTW here&#39;s the Thunderbird docs for signing/encrypting via PGP <a href="https://support.mozilla.org/en-US/kb/digitally-signing-and-encrypting-messages" rel="nofollow">https://support.mozilla.org/en-US/kb/digitally-signing-and-encrypting-messages</a></p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

1484 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传