scp home

Home    CertX ActiveX Online Help Prev Next
Introduction
License
Certificate Request functions
csr_new
csr_export_to_file
csr_export
csr_sign
x.509 functions
x509_check_private_key
x509_checkpurpose
x509_export
x509_export_to_file
x509_free
x509_read
x509_parse
PKCS7 functions
pkcs7_decrypt
pkcs7_encrypt
pkcs7_sign
pkcs7_verify
RSA
pkey_new
pkey_export
pkey_export_to_file
pkey_get_public
pkey_get_private
public_encrypt
private_decrypt
open (decrypt)
seal (encrypt)
sign
verify
PKCS7 Constants

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"

(c) Activecrypt Software LLC, 2004

 

Browser Based Help. Published by chm2web software.