Use this guide to enable certificate authentication via SSL in SecureAuth IdP realm(s).
This configuration initiates a begin site that forces the browser to request a certificate before the end user provides any information (client-side certificate) to enable access to the target resource (application, VPN, IdM tool, etc.)
- Have a valid certificate that is used to access the realm configured for certificate authentication via SSL. You can use any of the following certificates:
- Certificates generated by SecureAuth IdP
- Issued certificates – If your organization has their own issued certificates, make sure it meets the validation requirements in the next section, Certificate validation requirements and realm configuration options
- Smart card certificates – If you have a smart card certificate, then the certificate chain must be imported from the card issuer to the SecureAuth IdP appliance
- On SecureAuth IdP version 9.1 and later, create a new realm or edit an existing realm to which SSL certificate authentication is applied in the SecureAuth IdP Web Admin.
- Before setting up a realm for certificate authentication via SSL, configure the following tabs in the Web Admin:
- Overview – define the realm and SMTP connections
- Data – integrate an enterprise directory with SecureAuth IdP
- Workflow – define the user login process for accessing the target resource
- Multi-Factor Methods – define the Multi-Factor Authentication methods used to access the target (if any)
- Post Authentication – define the target resource or post authentication action
- Logs – enable or disable the the logs for this realm
Certificate validation requirements and realm configuration options
This section is required only if your organization wants to use their own issued certificates instead of SecureAuth IdP-generated certificates. The SecureAuth IdP has a stock out-of-the-box (OOTB) validation scheme to validate security certificates.
To ensure that certificates can be validated by SecureAuth IdP, see the following requirements to tailor your issued certificates. You can use your issued certificates if there are no expectations to modify the cSSL.aspx.vb file, as long as the issued certificates meet the following requirements.
- The issued certificate needs to have a Subject field containing the Company Name of the client. This value must match the shipped value defined on the System Info tab (Classic IdP Experience) in the License Info section, in the Company Name field.
Ideally, this value in the Subject field can be paired to the "O" ("Organization") attribute of the Subject field. For example:
O = Company Name
- The same aforementioned Subject field needs to have the "CN" ("Common Name") attribute containing a value to which the SecureAuth IdP uses to validate the user.
This is usually the sAMAccountName value (the User ID) of the user that the SecureAuth IdP validates against the Active Directory. Alternatively, it can also be an email or a UPN. In the following example for an Active Directory configuration, any of the following values are valid:
CN = jsmith (user ID)
CN = firstname.lastname@example.org (for emails)
CN = email@example.com (for UPN; assuming enterprise user or employee who is an active Domain User)
At this point, the SearchFilter setting in SecureAuth IdP can be adjusted to accommodate searchability. The CN value should match the "Issued to" value of the certificate.
The following describes how the default validation scheme works in SecureAuth IdP:
- In SecureAuth IdP, it checks whether the Company Name value in the Subject field of the certificate matches the defined Company Name from the License Info section on the System Info tab.
- When a match is found, it proceeds to the next step. Otherwise validation fails when a match is not found.
- Then, the SecureAuth IdP checks whether the value of the CN attribute in the Subject field of the certificate matches the user information in the data store.
- When a match is found, it proceeds with the remainder of the login workflow to authenticate the user into the resource. Otherwise, validation fails when a match is not found.
If your organization has issued certificates using a defined format for most of your end user base, then it requires a customization option. To accommodate defined certificates for validation by SecureAuth IdP, it requires code changes to .dll or .vb files. Contact SecureAuth Support to customize the issuing certificate realm.
To apply your defined certificates in the realm, make the following configurations.
- On the SecureAuth IdP appliance, go to the folder for the realm that is configured to work with your defined certificates. For example, D:\SecureAuth\SecureAuth20.
- Find the cSSL.aspx file and make the following edits:
Change CodeBehind to CodeFile.
Change Inherits="MFC.WebApp.SecureAuth.cSSL" to Inherits="cSSL".
For example, the result of these edits might appear as: CodeFile="cSSL.aspx.vb" Inherits="cSSL". See the following example.
- Save your changes.
To validate and extract user information required for the certificate environment, find and edit the cSSL.aspx.vb file.
Contact SecureAuth Support for assistance in customizing the cSSL.aspx.vb file.
Realm configuration for certificate authentication via SSL
These configuration steps are for the realm to which certificate authentication via SSL applies.
- Go to the Workflow tab.
In the Custom Identity Consumer section, set the following:
Receive Token Set to Token. Require Begin Site Set to True. Begin Site Set to Client Side SSL. Begin Site URL This field is autopopulated with cSSL.aspx.
- Click Save.
Internet Information Services (IIS) Manager configuration
- Go to the Internet Information Services (IIS) Manager.
- Under Sites > Default Web Site, select the realm to which the SSL certificate is applied (for example, SecureAuth3).
Click SSL Settings and set the following:
Require SSL Select the check box. Client certificates Choose the Require option.
Sample end user workflow
- When the end user attempts to access the certificate authentication via SSL realm, the SSL certificate Begin Site opens.
- From the Begin Site, the end user is immediately prompted for a certificate.
- A list of certificates are retrieved, from which the end user selects the appropriate certificate.
- The end user is redirected to the SecureAuth IdP, and follows the workflow of the SSL certificate realm and then to the target resource.