Add a new function in keyManager API to extract the DNS/hostName of a certificate
For the PUSH model, in the ServerConfiguration.CreateSigningRequest
method we have to retrieve the current DNS/hostName of the server certificate (type SOPC_CertificateList
) to set the DNS value of the subjectAlternativeName extension.
As example the declaration might be as follows SOPC_KeyManager_Certificate_GetSanDnsName(const SOPC_CertificateList* pCert, char*** ppDnsNameArray, uint32_t* pArrayLength)
Moreover, as a certificate could have several DNS names in the subjectAlternativeName extension, we should update the declaration of SOPC_KeyManager_CSR_Create
with a const C string array pDnsNameArray
and with it length arrayLength
.