Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/miyako/xmlsec
Browse files Browse the repository at this point in the history
  • Loading branch information
miyako committed Nov 30, 2024
2 parents 3a8162c + de97a7d commit 56540f8
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,42 @@
}
```

## 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:=cs.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

```
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
],
"license": "MIT",
"repository": "https://github.com/miyako/xmlsec",
"version": "1.0.9",
"version": "1.0.10",
"tool": {
"platform": "macos",
"branch": "20.x",
Expand Down

0 comments on commit 56540f8

Please sign in to comment.