Assures presence of the own certificate pack the application is currently configured to use.
This method operates on certificates with certificate type Ids given by PackCertificateTypeIds.
The AssureOwnCertificatePack methods check if the application has its own application certificate pack (according to application configuration), and create the certificate pack if it is missing.
Returns
true
if a new certificate pack has been created. Returns
false
if an existing certificate pack was found and accepted as the current own certificate pack.
If the own certificate pack does not exist in the certificate store prior to the operation, the method creates it. Otherwise, the method also checks whether the instance certificates are present in the trusted peers certificate store, and if they are absent, it copies them there. This is in contrast to the CreateOwnCertificateOrCertificatePack method, which always creates new certificate(s) when successful.
Overload List
Requirements
Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows
See Also