Security, software development and devops in a cloud world

Category PHP

PHP 8: Setup PHP_SSH2

Introduction This article describes a problem that I ran into while developing an SSH application with PHP 8.0 on Windows 10 and the solution. Environment Windows 10 Professional XAMPP 8.0.6 – 2021-05-11 PHP 8.0.6 Example Code:

The problem line… Continue Reading →

Laravel – Adding Azure Blob Storage

Introduction Recently I decided to deploy a Laravel site so that customers can upload large files privately and securely. Similar to Dropbox but without its bells and whistles. I did not want to share access keys or other secrets. I… Continue Reading →

Azure – OpenID Connect JSON Web Key Set

Introduction For a new project, I must validate Azure Access Tokens in PHP. This requires obtaining the public key to validate the JWT signature. This article shows the process of working with the Azure OpenID Connect Metadata Document to obtain… Continue Reading →

Laravel – Redirecting HTTP to HTTPS

Introduction Once you have an SSL certificate configured, the next step is to redirect unencrypted traffic. There are several methods of doing this. Within your application (Laravel), by the web server (Apache or Nginx) or by the frontend (load balancer)…. Continue Reading →

Laravel – Displaying a GitHub Gist

Introduction Today (June 14, 2021) I answered a question on Stackoverflow regarding the Google Cloud Recommender API that required Python source code. I also created a GitHub Gist to make downloading the code easier. That got me thinking about how… Continue Reading →

CURL SSL Certificate Problem

Part 1 – The CURL command-line program If curl is not set up correctly for SSL (HTTPS) data transfers an error is displayed. The error message starts like this: curl: (60) SSL certificate problem: unable to get local issuer certificate… Continue Reading →

© 2022 John Hanley — Powered by WordPress

Theme by Anders NorenUp ↑