xmlsec

View the Project on GitHub miyako/xmlsec

version platform license downloads

Licensing

xmlsec

dependencies.json

{
    "dependencies": {
        "xmlsec": {
            "github": "miyako/xmlsec",
            "version": "*"
        }
    }
}

Usage

#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

CLI Build

export LDFLAGS="-Llib/"
export LIBS="-llzma -liconv -lgcrypt -lcharset"  
./configure --enable-static-linking --without-gnutls --without-gcrypt