Skip to content

Instantly share code, notes, and snippets.

@RIKIKU
Last active July 10, 2017 03:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RIKIKU/e32248fb808252c08ff1a2b53870c85a to your computer and use it in GitHub Desktop.
Save RIKIKU/e32248fb808252c08ff1a2b53870c85a to your computer and use it in GitHub Desktop.
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