X509CertCreateCSR (FUN)

FUNCTION X509CertCreateCSR : RTS_IEC_RESULT

Create a new certificate request. A new PRIVATE key will be generated and automatically stored in the key store. The certificate request can be sent to an official CA to get a signed certificate.

InOut:

Scope

Name

Type

Comment

Return

X509CertCreateCSR

RTS_IEC_RESULT

Input

hCertStore

RTS_IEC_HANDLE

Handle to the certificate store

hBackend

RTS_IEC_HANDLE

Handle to the back-end where to store the generated certificate. RTS_INVALID_HANDLE should be used if no back- end is specified.

pCertInfo

POINTER TO RtsX509CertInfo

Information of the certificate to be generated.

ui32KeySize

UDINT

Size in bits of the private key.

encoding

RtsCertEncoding

Encoding of the generated CSR.

pCSR

POINTER TO RtsByteString

The signing request in binary form.