https://github.com/miyako/openssl
https://github.com/miyako/openssl
4d-class 4d-component openssl
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/miyako/openssl
- Owner: miyako
- License: mit
- Created: 2024-11-25T14:00:01.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-15T00:46:26.000Z (10 months ago)
- Last Synced: 2025-05-15T01:35:53.613Z (10 months ago)
- Topics: 4d-class, 4d-component, openssl
- Language: Perl
- Homepage: https://miyako.github.io/OpenSSL/
- Size: 13.3 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/curl/blob/master/LICENSE).
* see [openssl-library.org](https://openssl-library.org/source/license/index.html) for the licensing of **OpenSSL**.
# OpenSSL
## dependencies.json
```json
{
"dependencies": {
"OpenSSL": {
"github": "miyako/OpenSSL",
"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 $OpenSSL : cs.OpenSSL.OpenSSL
$OpenSSL:=cs.OpenSSL.OpenSSL.new()
$key:=Folder(fk desktop folder).file("key.pem")
$crt:=Folder(fk desktop folder).file("crt.pem")
$OpenSSL.start([\
"req"; "-x509"; \
"-newkey"; "rsa:4096"; \
"-keyout"; $key; \
"-out"; $crt; \
"-sha256"; \
"-days"; 3650; \
"-nodes"; \
"-subj"; "\"/C=XX/ST=StateName/L=CityName/O=CompanyName/OU=CompanySectionName/CN=CommonNameOrHostname\""])
End if
```
## Build CLI
* macOS
```
./Configure -no-shared -no-pinshared
```
* Windows ([vcpkg](https://vcpkg.io/en/package/openssl.html))
```
vcpkg install openssl[tools] --triplet x64-windows-static
```