For Microsoft CA to construct the SubjectAltName
in the issued certificate, you must enable the following flag.
Config_CA_Accept_Request_Attributes_SAN
You can enable this flag in your remote certificate services implementation or the Microsoft CA server machine, as explained below.
See the [MS-CSRA] Microsoft document for more information on this flag.
To enable Config_CA_Accept_Request_Attributes_SAN in the Microsoft CA machine
- Log into the Windows machine hosting the Microsoft CA server.
- Run the
regedit
command to open the Registry Editor. Select the following registry key (
<CA_CN>
is the Common Name of the Microsoft CA).HKLM/SYSTEM/CurrentControlSet/Services/CertSvc/Configuration/<CA_CN>/PolicyModules/CertificateAuthority_MicrosoftDefault.Policy/EditFlags
Calculate an OR of the current key value and
0x00040000
. For example, if the current value is11014e
, calculate:0x00011014e OR 0x00040000 = 0x0001514e
- Set the OR result as the new key value.
- Run the
certsrv
command to display the CA service settings.
- In the navigation tree, right-click the CA name.
- Select All Tasks > Stop service to stop the Microsoft CA server.
- Select All Tasks > Start service to restart the Microsoft CA server.