https://github.com/miyako/xmlsec
https://github.com/miyako/xmlsec
4d-class 4d-component xmlsec
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/miyako/xmlsec
- Owner: miyako
- License: mit
- Created: 2024-11-30T00:15:01.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-03-13T08:28:08.000Z (about 1 month ago)
- Last Synced: 2025-03-13T08:30:53.093Z (about 1 month ago)
- Topics: 4d-class, 4d-component, xmlsec
- Language: 4D
- Homepage: https://miyako.github.io/xmlsec/
- Size: 19.1 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README


[](LICENSE)
### Licensing
* the source code of this component is licensed under the [MIT license](https://github.com/miyako/cpdf/blob/master/LICENSE).
* see [aleksey.com](https://www.aleksey.com/xmlsec/) for the licensing of **xmlsec**.# xmlsec
## dependencies.json
```json
{
"dependencies": {
"xmlsec": {
"github": "miyako/xmlsec",
"version": "latest"
}
}
}
```## Usage
```4d
#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
```