Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 (2 months ago)
- Default Branch: main
- Last Pushed: 2024-12-04T14:36:18.000Z (about 2 months ago)
- Last Synced: 2024-12-04T15:33:18.863Z (about 2 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
![version](https://img.shields.io/badge/version-20%2B-E23089)
![platform](https://img.shields.io/static/v1?label=platform&message=mac-intel%20|%20mac-arm%20|%20win-64&color=blue)
[![license](https://img.shields.io/github/license/miyako/OpenSSL)](LICENSE)
![downloads](https://img.shields.io/github/downloads/miyako/OpenSSL/total)### 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": "*"
}
}
}
```## 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
```