Security.SSLConfigs
persistent class Security.SSLConfigs extends %Library.Persistent, %XML.Adaptor, %SYSTEM.Help
SQL Table Name: Security.SSLConfigs
Defines the SSL/TLS configurations, and methods which manipulate them.
The table for this class should be manipulated only through object access, the published API's or through the System Management Portal. It should not be updated through direct SQL access. The table can only be queried directly by users with the %All role. Regular users should use the List, ListNames or Detail class queries.
SSL config names have the following properties:
- SSL configuration names are case sensitive.
- Maximum length of a configuration name is 64 characters.
Once an SSL configuration is defined and activated, you can use the name of the configuration as a parameter to the open or use command in order to set up an SSL connection:
Open dev:(Host:Port:"M":/TLS="Name"):10
The %Admin Secure:USE permission is required to operate on an SSL configuration.
Property Inventory
- AuthorizeCN
- CAFile
- CAPath
- CertificateFile
- CipherList
- Ciphersuites
- Description
- DiffieHellmanBits
- Enabled
- Name
- OCSP
- OCSPIssuerCert
- OCSPResponseFile
- OCSPURL
- PrivateKeyFile
- PrivateKeyPassword
- PrivateKeyType
- Protocols
- SNIName
- TLSMaxVersion
- TLSMinVersion
- Type
- VerifyDepth
- VerifyPeer
Method Inventory
- Activate()
- ActivateAll()
- ConvertProtocols()
- Create()
- Deactivate()
- Delete()
- Exists()
- Export()
- Get()
- GetCertificate()
- Import()
- Modify()
- TestConnection()
- Validate()
Parameters
Properties
Normally, mirroring with SSL requires the following steps:
- Add primary to mirror
- Add backup to mirror
- Authorize backup on primary
Can be an absolute pathname, a pathname relative to the manager's directory, or a special value "%OSCertificateStore" for OS-provided trusted CA certificate stores.
Clients: Specify CAFile and/or CAPath
Servers: Specify CAFile and/or CAServer if VerifyPeer > 0
Can be an absolute pathname or a pathname relative to the manager's directory.
Clients: Specify CAFile and/or CAPath
Servers: Specify CAFile and/or CAServer if VerifyPeer > 0
Can be an absolute pathname or a pathname relative to the manager's directory. If not null, PrivateKeyFile must also be specified.
By default, disable anonymous, unencrypted, export, and SSLv2 ciphersuites.
(Relevant for server configurations only)
Default is 0 (Auto)
Clients:
0 = None
1 = Require valid OCSP Stapling (continue only if OCSP verification succeeds)
Servers:
0 = None
1 = Support OCSP Stapling
For Servers with OCSP Stapling support, this is issuer certificate to be used when
requesting an OCSP response.
For Servers with OCSP Stapling support, this is the path to store the cached OCSP response file.
For Servers with OCSP Stapling support, this is the URL used to request an OCSP response
Note: this is populated automatically based on the server certificate.
Can be an absolute pathname or a pathname relative to the manager's directory. If not null, CertificateFile must also be specified.
If not null, PrivateKeyFile and CertificateFile must also be specified.
1 = DSA
2 = RSA
3 = ECDSA
Bit 2 - TLSv1.0
Bit 3 - TLSv1.1
Bit 4 - TLSv1.2
Bit 5 - TLSv1.3
DEPRECATED. Use TLSMinVersion and TLSMaxVersion instead.
2 - SSLv3 4 - TLSv1.0 8 - TLSv1.1 16 - TLSv1.2 32 - TLSv1.3 Default = TLSv1.3 Requirement is TLSMaxVersion >= TLSMinVersion
2 - SSLv3 4 - TLSv1.0 8 - TLSv1.1 16 - TLSv1.2 32 - TLSv1.3 Default is TLSv1.2
Requirement is TLSMinVersion <= TLSMaxVersion
0 = client
1 = server
Default is client (0)
Clients:
0 = None (continue even if certificate verification fails)
1 = Require server certificate (continue only if certificate verification succeeds)
Servers:
0 = None (do not request client certificate)
1 = Request client certificate (terminate if certificate is provided and verification fails)
3 = Require client certificate (continue only if certificate is provided and verification succeeds)
Methods
Activate the configuration for use when new TCP connections are OPENed with the /SSL or /TLS parameter.
Activate all defined SSL configurations.
Create an SSL configuration in the Security database.
Parameters:
Name - Name of the SSL configuration to create
Properties - Array of properties corresponding to the class properties
For example, Properties("CAFile")=Filename
This method will delete an SSL configuration from the security database.
Parameters:
Name - Name of SSL configuration to delete
This method checks for the existence of an SSL Configuration in the security database.
Parameters:
Name - Name of the SSL configuration to check existence of
Return values:
If Value of the method = 0 (SSL configuration does not exist, or some error occured)
SSLConfig = Null
Status = SSL configuration "x" does not exist, or other error message
If Value of the method = 1 (SSL configuration exists)
SSLConfig = Object handle to SSL configuration
Status = $$$OK
Parameters:
FileName - Output file name
NumExported (byref) - Returns number of XML records exported.
SSLConfigs - Comma separated list of SSL configurations to export, "*" = All NoPwd - When true, PrivateKeyPassword is not exported
Gets a SSL configuration's properties from the security database.
Parameters:
Name - Name of the SSL configuration to get
Return values:
Properties - Array of properties.
For example, Properties("CAFile")=Filename
Note: Admin_Secure:Use permission required for this method since it returns an unhashed password.
Parameters:
FileName - Filename to import SSL configuration records from
NumImported (byref) - Returns number of records imported
Flags - Control import
Bit 0 - Do not import records, just return count
Note: On failure, no records will be imported
Warning: Import will fail if the certificate paths or certificates do not exist before the import.
Modify an existing SSL configuration's properties in the security database.
Parameters:
Name - Name of the SSL configuration to modify
Properties - Array of properties to modify.
For example, Properties("CAFile")=Filename If a specific property is not passed in the properties array, or is the same as the existing value, the value is not modified.
Attempts to make an SSL connection to the passed Host and port.
Parameters:
Host - Ip name of the host to connect to
Port - Port # of the host to connect to
Return Values:
On success, Info is returned as an array of messages concerning the host which we connected to.
Use the TestConnection method instead.
Attempts to make an SSL connection to the passed Host and port.
Parameters:
Host - Ip name of the host to connect to
Port - Port # of the host to connect to
Return Values:
String of success or error messages.
Queries
Names - Comma separated list of SSL configuration names, "*" = All
Types - Comma separated list of SSL Types, 0=Clients, 1=Servers, *=All Note: This query may change in future versions
Names - Comma separated list of SSL configuration names, "*" = All
Note: This query may change in future versions
SELECT Name FROM SSLConfigs ORDER BY Name
Names - Comma separated list of SSL configuration names, "*" = All
Indexes
Triggers
Inherited Members
Inherited Methods
- %%CLASSNAMELogicalToStorage()
- %%CLASSNAMEStorageToLogical()
- %AddToSaveSet()
- %AddToSyncSet()
- %BMEBuilt()
- %BuildDeferred()
- %BuildDeferredBitString()
- %BuildDeferredRecord()
- %BuildIndicesAsync()
- %BuildIndicesAsyncResponse()
- %CheckConstraints()
- %CheckConstraintsForExtent()
- %ClassIsLatestVersion()
- %ClassName()
- %ComposeOid()
- %ConstructClone()
- %Delete()
- %DeleteExtent()
- %DeleteId()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %Exists()
- %ExistsId()
- %Extends()
- %GUID()
- %GUIDSet()
- %GetLock()
- %GetParameter()
- %GetSwizzleObject()
- %Id()
- %InsertBatch()
- %IsA()
- %IsModified()
- %IsNull()
- %KillExtent()
- %KillExtentData()
- %LoadFromMemory()
- %LockExtent()
- %LockId()
- %New()
- %NormalizeObject()
- %ObjectIsNull()
- %ObjectModified()
- %Oid()
- %OnBeforeAddToSync()
- %OnDeleteFinally()
- %OnDetermineClass()
- %OnOpenFinally()
- %OnSaveFinally()
- %Open()
- %OpenId()
- %OriginalNamespace()
- %PackageName()
- %PhysicalAddress()
- %PurgeIndices()
- %Reload()
- %RemoveFromSaveSet()
- %ResolveConcurrencyConflict()
- %RollBack()
- %Save()
- %SaveDirect()
- %SaveIndices()
- %SerializeObject()
- %SetModified()
- %SortBegin()
- %SortEnd()
- %SyncObjectIn()
- %SyncTransport()
- %UnlockExtent()
- %UnlockId()
- %ValidateIndices()
- %ValidateObject()
- %ValidateTable()
- Help()
- XMLDTD()
- XMLExport()
- XMLExportToStream()
- XMLExportToString()
- XMLNew()
- XMLSchema()
- XMLSchemaNamespace()
- XMLSchemaType()