<p>Anyone around who signed mails with go?</p>
<p>I tried github.com/fullsailor/pkcs7, but my mail client can'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'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'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'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'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
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传