Self Signed Certificate – PowerShell Code Snippet

How to create self signed TLS/SSL certificate? $cert = New-SelfSignedCertificate -CertStoreLocation cert:\currentuser\my -Subject “” -DnsName “”$pwd = ConvertTo-SecureString -String ‘YourPassword’ -Force -AsPlainText$path = ‘cert:\currentuser\my\’ + $cert.thumbprintExport-PfxCertificate -cert $path -FilePath c:\test\powershellcert.pfx -Password $pwd Relevant for Azure API Management

How to convert .pfx to .cer?

openssl pkcs12 -in testcert.pfx -out C:\TLS\powershellcert.pem -nodes openssl pkcs12 -in testcert.pfx -nocerts -out [keyfilename-encrypted.key] Download and install openssl from

PNP Template – PnP Provisioning Template for SharePoint Online

1, Install SharePoint PowerShell: Install-Module SharePointPnPPowerShellOnline 2, Connect to SharePoint Online: Connect-PnPOnline –Url –Credentials (Get-Credential) 3, Go to the folder where you want to save the whole site collection XML and execute the command: Get-PnPProvisioningTemplate -Out “PnP-Provisioning-File.xml” More Information Click Here

Error occurred in deployment step ‘Install SharePoint Add-in’: Sideloading of apps is not enabled on this site

Enabling the Developer Site Collection Feature in SharePoint On-Premisis Open Powershell command prompt // load sharepoint dll Add-PSSnapin Microsoft.SharePoint.PowerShell //activate feature Enable-SPFeature e374875e-06b6-11e0-b0fa-57f5dfd72085 –url siteUrl   Enabling the Developer Site Collection Feature in SharePoint Online $programFiles = [environment]::getfolderpath(“programfiles”) add-type -Path $programFiles’\SharePoint Online Management Shell\’ + ` ‘Microsoft.Online.SharePoint.PowerShell\Microsoft.SharePoint.Client.dll’ Write-Host ` ‘To enable SharePoint app… Read More