 |
Certificate Request functions |
 |
x.509 functions |
 |
PKCS7 functions |
 |
RSA |
|
csr_export_to_file
Exports a CSR to a file
Syntax
Function csr_export_to_file (csr, outfilename As String, [notext]) As Boolean
csr_export_to_file() takes the Certificate
Signing Request represented by csr and saves
it as ascii-armoured text into the file named by outfilename.
The optional parameter notext affects the
verbosity of the output; if it is FALSE then
additional human-readable information is included in the output. The default
value of notext is TRUE.
Returns TRUE on success or FALSE
on failure.
See also csr_export, csr_new and
csr_sign.
Example
Set dn = CreateObject("Scripting.Dictionary")
dn.Add "countryName", "UK"
dn.Add "stateOrProvinceName", "Somerset"
dn.Add "localityName", "Glastonbury"
dn.Add "organizationName", "The Brain Room Limited"
dn.Add "organizationalUnitName", "PHP Documentation Team"
dn.Add "commonName", "Wez Furlong"
dn.Add "emailAddress", "wez@example.com"
Set privkey = ssl.pkey_new()
Set certificate_request = ssl.csr_new(dn, privkey)
ssl.csr_export_to_file certificate_request,
"certificate1.csr" |
|