EVPKey::GenerateCSR (open)

Generate a PEM-encoded certificate request

Syntax

LOADLIB "wh::crypto.whlib";

STRING FUNCTION GenerateCSR(RECORD ARRAY nameparts, STRING altnames)

Parameters

RECORD ARRAY nameparts

The identification properties

STRING field

The property name (e.g. "C", "ST", "L", "O", "CN" or "OU")

STRING value

The property value

STRING altnames

Alternative hostnames (e.g. "DNS:www.example.com, DNS:www.example.net, DNS:www.example.org")

Return value

STRING

The PEM-encoded certificate request