%SYS
CAClient Class Reference

Certificate Authority client. More...

Inheritance diagram for CAClient:
Collaboration diagram for CAClient:

Public Member Functions

_.Library.String BuildSubject (_.Library.List values)
 Build the "-subject" argument to the "openssl req" command. More...
 
_.Library.String GetCertificate (_.Library.String number, _.Library.Status st)
 Get an X.509 Certificate issued by the Certificate Authority server. More...
 
_.XML.DataSet ListCertificates (_.Library.String hostname, _.Library.String instance, _.Library.Status st)
 Get a list of X.509 Certificates issued by the Certificate Authority server. More...
 
_.Library.String SubmitCSR (_.Library.String filename, _.Library.List attrList, _.Library.String password, _.Library.Status st)
 Generate and submit a Certificate Signing Request to the Certificate Authority server. More...
 

Static Public Member Functions

_.Library.String Configure (PKI.CAClient client, _.Library.Status st)
 Configure this Certificate Authority client. More...
 

Public Attributes

 AttributePrompt
 Prompts to use when building a List for constructing a Subject Distinguished Name. More...
 
 AttributeType
 Attribute type keywords to use when building the "-subject" argument to the "openssl req" command. More...
 
 ContactEmail
 Email address of the local technical contact for this Certificate Authority client. More...
 
 ContactName
 Name of the local technical contact for this Certificate Authority client. More...
 
 ContactPhone
 Phone number of the local technical contact for this Certificate Authority client. More...
 
 Name
 The default Certificate Authority client has the name "IRIS CA". More...
 
 Path
 Path used to access the PKI.CAServer Web service. More...
 
 Port
 TCP port used to access the PKI.CAServer Web service. More...
 
 Server
 DNS hostname used to access the PKI.CAServer Web service. More...
 
 TLSConfiguration
   More...
 
 UseTLS
   More...
 

Detailed Description

Certificate Authority client.

Use with PKI.CAServer.

Member Function Documentation

◆ BuildSubject()

_.Library.String BuildSubject ( _.Library.List  values)

Build the "-subject" argument to the "openssl req" command.

or the "-dname" argument to the "keytool -genkeypair" command from a List

◆ Configure()

_.Library.String Configure ( PKI.CAClient  client,
_.Library.Status  st 
)
static

Configure this Certificate Authority client.

Must be called before Certificate Signing Requests can be submitted. Creates the OpenSSL configuration file "openssl.cnf" if it does not exist. Parameter:
client - PKI.CAClient object, with all required properties set
st - On return, contains a status code
Return value:
String describing successful configuration, or error

◆ GetCertificate()

_.Library.String GetCertificate ( _.Library.String  number,
_.Library.Status  st 
)

Get an X.509 Certificate issued by the Certificate Authority server.

This method retrieves a PKI.Certificate object and saves the contents in a Certificate (.cer) file.
Parameter:
number - serial number of the X.509 Certificate requested, or 0 to request the Certificate Authority server's X.509 Certificate
st - On return, contains a status code
Return value:
String describing saved Certificate file, or error

◆ ListCertificates()

_.XML.DataSet ListCertificates ( _.Library.String  hostname,
_.Library.String  instance,
_.Library.Status  st 
)

Get a list of X.509 Certificates issued by the Certificate Authority server.


Parameters:
hostname - Hostname from which signing requests for certificates was received
instance - InterSystems IRIS instance from which signing requests for certificates were received
Note: If both hostname and instance are not specified, all issued certificates are listed. st - On return, contains a status code
Return value:
An XML.DataSet object

◆ SubmitCSR()

_.Library.String SubmitCSR ( _.Library.String  filename,
_.Library.List  attrList,
_.Library.String  password,
_.Library.Status  st 
)

Generate and submit a Certificate Signing Request to the Certificate Authority server.

This method creates Certificate Signing Request (.csr) and Private Key (.key) files, creates a PKI.CSR object, and submits that object to the Certificate Authority server.
Parameters:
filename - Name to use for created Certificate Signing Request (.csr) and Private Key (.key) files
attrList - List containing attribute values to be used in constructing this Certificate Signing Request's Subject Distinguished Name
password - Password used to protect Private Key file (optional)
st - On return, contains a status code or SOAP fault
Return value:
String describing successful submission, or error

Member Data Documentation

◆ AttributePrompt

AttributePrompt

Prompts to use when building a List for constructing a Subject Distinguished Name.

 

◆ AttributeType

AttributeType

Attribute type keywords to use when building the "-subject" argument to the "openssl req" command.

 

◆ ContactEmail

ContactEmail

Email address of the local technical contact for this Certificate Authority client.

Email notification will be sent to this address when an X.509 Certificate is issued for a Certificate Signing Request from this Certificate Authority client.  

◆ ContactName

ContactName

Name of the local technical contact for this Certificate Authority client.

This is the person who will be contacted by the Certificate Authority server's administrator to verify the validity of Certificate Signing Requests from this client.  

◆ ContactPhone

ContactPhone

Phone number of the local technical contact for this Certificate Authority client.

 

◆ Name

Name

The default Certificate Authority client has the name "IRIS CA".

There is at most one per InterSystems IRIS instance.  

◆ Path

Path

Path used to access the PKI.CAServer Web service.

 

◆ Port

Port

TCP port used to access the PKI.CAServer Web service.

 

◆ Server

Server

DNS hostname used to access the PKI.CAServer Web service.

 

◆ TLSConfiguration

TLSConfiguration

 

 

◆ UseTLS

UseTLS