Update Install-Identity-Utilities.New-IdentityEncryptionCerfificat() to check the OS version and call the correct version of New-SelfSignedCertificate, since the method signatures are different for Windows Server 2012 and 2016.
All parameter values included in the 2016 version call seem to be default on the 2012 call, with the friendly name as an exception. This is set after the cert is created
Update Install-Identity-Utilities.New-IdentityEncryptionCerfificat() to check the OS version and call the correct version of New-SelfSignedCertificate, since the method signatures are different for Windows Server 2012 and 2016.
All parameter values included in the 2016 version call seem to be default on the 2012 call, with the friendly name as an exception. This is set after the cert is created
*DnsName creates the subject in the 2012 version