Skip to content

miyako/OpenSSL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

version platform license downloads

Licensing

OpenSSL

dependencies.json

{
   "dependencies": {
   	"OpenSSL": {
   		"github": "miyako/OpenSSL",
   		"version": "*"
   	}
   }
}

Usage

#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
vcpkg install openssl[tools] --triplet x64-windows-static