Try OpenEdge Now
skip to main content
Core Business Services - Security and Auditing
Security : Public-Key Infrastructure (PKI) : Trust relationships and supporting mechanisms : Digital certificates and certificate store : Adding Subject Alternative Name (SAN) to a digital certificate
Adding Subject Alternative Name (SAN) to a digital certificate
Subject Alternative Name (SAN) is an extension to X.509 that lets you specify additional host names (values) to be protected by a single SSL certificate using a subjectAltName field. It allows more than one host to use the same copy of a single certificate. At the server-level, you can create multiple virtual hosts and add these hosts to the subjectAltName field of the certificate. You generate a certificate with SAN and the clients can connect to the server using subjectAltName. Whenever HTTPS request comes to any of the virtual host, the server uses the same certificate for SSL handshake.
A Wildcard certificate can protect all first-level sub-domains on a domain, such as * but it cannot protect both and Hosting multiple SSL-enabled sites on a single server typically requires a unique IP address per site, a multi-domain (such as SAN) certificate with subject alternative names allows you to protect all these sub domains with a single certificate. However, you can use a Wildcard certificate as part of SAN.
Before you generate the digital certificate using the pkiutil utility, open the pscpki.cnf file in the %DLC%\keys\policy location and add the subjectAltName values as follows under the x509v3_extensions section:
subjectAltName = @alt_names
Add the domain names in the alt_names section as follows:
DNS.1 = <value>
DNS.2 = <value>
For example, let's assume that you want to generate certificate for a host and two alternate hosts and So, you have three virtual hosts,, and and their loop back address are,, and respectively. Do the following:
1. Open the hosts.txt file from the C:\Windows\System32\drivers\etc location for Windows or the /etc/ location for Linux.
2. Add the loop back addresses and the host names.
Note: If there is a loop back address that is already assigned to host, use another loop back address, for example, if is already assigned, assign to the host.
3. Verify if the hosts were added, by pinging each host in the Command prompt. For example, type ping, if you are able to ping each host successfully, the hosts are added.
4. Create a copy of the pscpki.cnf file at the %DLC%\keys\policy and name it myssl.cnf.
5. Edit the myssl.cnf to add the following under the x509v3_extensions section:
subjectAltName = @alt_names
DNS.1 =
DNS.2 =
6. Generate the public and private key pair using the pkiutil -keysize 2048 –newreq example command. It creates example.pk1 and example.pk10 files in the %DLC%/keys/requests location. example.pk1 serves as your private key and example.pk10 as the public key serves as a Certificate Signing Request (CSR) to a certificate authority (CA).
7. Verify CSR using the sslc req -text -in %DLC%\keys\requests\example.pk10 –noout command.
8. Create a self-signed certificate .cer file and convert to .pem file using pkiutil.
9. Open the .pem file and verify the subjectAltName field by executing the Proenv> sslc x509 -in %DLC%\keys\example.pem -text -noout command. The X509v3 extensions section displays the subjectAltName as follows:
X509v3 extensions:
X509v3 Subject Alternative Name:
DNS.1 =
DNS.2 =