CryptoSys PKI Pro Manual

X509.CertRequest Method

Create a PKCS #10 certificate signing request (CSR).

Syntax

[C#]
public static int CertRequest(
   string reqFile,
   string privateKeyFile,
   string distName,
   string extensions,
   string password,
   SigAlgorithm sigAlg,
   X509.CsrOptions opts 
)
[VB]
Public Shared Function CertRequest (
   reqFile As String,
   privateKeyFile As String,
   distName As String,
   extensions As String,
   password As String,
   sigAlg As SigAlgorithm,
   opts As X509.CsrOptions 
) As Integer

Parameters

reqFile  String
Name of Certificate Signing Request file to be created
privateKeyFile  String
Name of subject's encrypted private key file
distName  String
Specifying the subject's distinguished name as a set of attribute key=value pairs separated with semi-colons (;). See Specifying Distinguished Names
extensions  String
A list of attribute-value pairs to be included in an extensionRequest field. See X.509 Extensions
password  String
password for Subject's encrypted private key file
sigAlg  SigAlgorithm
Signature algorithm (must match key type)
opts  X509.CsrOptions
Option flags: set as zero for defaults.

Return Value

Int32
Zero if successful or a non-zero error code

Remarks

An ECC key must use an ECDSA signature algorithm, and an RSA key must use an RSA signature algorithm.

See Also

VB6/C equivalent: X509_CertRequest

[Contents] [Index]

[PREV: X509.CertIssuerName Method...]   [Contents]   [Index]   
   [NEXT: X509.CertSerialNumber Method...]

Copyright © 2004-26 D.I. Management Services Pty Ltd t/a CryptoSys. All rights reserved. Generated 2026-09-21T05:59:39Z.