Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Add-PSSnapin Microsoft.crm.powershell
$certificatePath = "C:\Cert.cer"
New-SelfSignedCertificate -DnsName CRMAzure -CertStoreLocation cert:\LocalMachine\My | Export-Certificate -Type CERT -FilePath $certificatePath
Set-CrmCertificate -CertificateType AppFabricIssuer -Name CRMAzure -StoreName My -StoreLocation LocalMachine -StoreFindType FindBySubjectDistinguishedName -DataFile $certificatePath
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment