Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
miyako authored Nov 30, 2024
1 parent 0e4f59e commit 6d4eb7a
Showing 1 changed file with 36 additions and 0 deletions.
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

0 comments on commit 6d4eb7a

Please sign in to comment.