- the source code of this component is licensed under the MIT license.
- see aleksey.com for the licensing of xmlsec.
{
"dependencies": {
"xmlsec": {
"github": "miyako/xmlsec",
"version": "*"
}
}
}
#DECLARE($params : Object)
If ($params=Null)
/*
async calls must be performed in a worker or form
*/
CALL WORKER(1; Current method name; {})
Else
var $xmlsec : cs.xmlsec.xmlsec
$xmlsec:=cs.xmlsec.xmlsec.new(cs._xmlsec_Controller)
$xml:=File("/DATA/wifi.xml")
$xml:=OB Class($xml).new($xml.platformPath; fk platform path)
$pem:=File("/DATA/private.pem")
$pem:=OB Class($pem).new($pem.platformPath; fk platform path)
$out:=Folder(fk desktop folder).file("signed-wifi.xml")
$xmlsec.perform(["--sign"; "--output"; $out; "--privkey-pem"; $pem; "--pwd"; "1234"; "--lax-key-search"; $xml])
/*
https://www.aleksey.com/xmlsec/faq.html
*/
End if
export LDFLAGS="-Llib/"
export LIBS="-llzma -liconv -lgcrypt -lcharset"
./configure --enable-static-linking --without-gnutls --without-gcrypt