add error if powershell core isn't used
Set-StrictMode -Version 3.0
$errorActionPreference="stop"
+if($PSVersionTable.PSEdition -ne "Core")
+{
+ Write-Error "This script requires Powershell Core. Please install Powershell Core at aka.ms/pscore6."
+}
+
Write-Warning "Certificates created by this script MUST NOT be used for production."
Write-Warning "They expire after 365 days, and most importantly are provided for demonstration purposes to help you quickly understand CA Certificates."
Write-Warning "When productizing against CA Certificates, you'll need to use your own security best practices for certification creation and lifetime management."
