iris-pkcs7-util
0
1
Initial Release
This is a set of utilities for working with PKCS#7 files. It is based on the python libraries asn1crypto
and pyopenssl
.
This utility is intended to be used with IRIS and IRIS for Heath from an COS environment.
It's distributed on ZPM/IPM.
zpm "install pkcs7-utils"
set tUtils = ##class(dc.cms.Utils).%New()
set tCertFileName = "cert.pem"
set tKeyFileName = "key.pem"
set tPassPhrase = "TOTO"
set tContent = ##class(%Stream.FileCharacter).%New()
$$$ThrowOnError(tContent.LinkToFile("content.txt"))
$$$ThrowOnError(<span class="pl-v">tUtils</span>.<span class="pl-e">CreateCMSStream</span>(<span class="pl-v">tContent</span>,<span class="pl-v">tCertFileName</span>, <span class="pl-v">tKeyFileName</span>, <span class="pl-v">tPassPhrase</span>, .<span class="pl-e">tStream</span>))
<span class="pl-k">zwrite</span> <span class="pl-v">tStream</span></pre></div>
Initial Release