Monthly Archives: July 2018

OpenSSL: Generate PFX from CRT and PEM

Here’s how you can use OpenSSL to generate a PFX file from a CRT (public key) and PEM (private key) file set. "c:\OpenSSL-Win64\bin\openssl.exe" pkcs12 -export -out www.mysite.com.pfx -inkey www.mysite.com.pem -in www.mysite.com.cert Note you will be prompted for the password you … Continue reading

Posted in This and that | Leave a comment

Azure PowerShell: Scale App Service Plan to Save Money

Here’s a bit of PowerShell to scale your Azure App Service down to save money. This task could be scheduled to “size down” at night, and “size up” for business hours.   Login-AzureRmAccount   $AppServicesJson = @" [ { "ResourceGroupName": … Continue reading

Posted in Azure, PowerShell | Leave a comment

Azure PowerShell: Querying Kudu WebJobs API

Here’s how you can query the Kudu WebJobs API to get the publishing credentials for an Azure App Service which in turn you can use to in a Basic authorization header of an HTTP request to get WebJob status etc. … Continue reading

Posted in Azure, PowerShell | Leave a comment