Skip to content

Instantly share code, notes, and snippets.

View br4instormer's full-sized avatar

br4instormer br4instormer

View GitHub Profile
@ronau
ronau / nginx-client-certificate-authentication.md
Last active June 9, 2025 13:44
A simple nginx configuration for a demo of client certificate authentication

Client certificate authentication with nginx

Below is a simple nginx configuration file enabling client certificate authentication, i.e. the user/client has to present a certificate in order to get access.

It is the result of a small proof of concept solution for the following task:

  • A certain web server directory should be used as file storage
  • Transport security (i.e. TLS)
@githubgobi
githubgobi / zip-files-with-password.md
Created July 11, 2018 06:00
Creating encrypted ZIP files with password in PHP

Creating encrypted ZIP files with password in PHP

You need at least PHP 7.2 to encrypt ZIP files with a password.

<?php

$zip = new ZipArchive();

$zipFile = __DIR__ . '/output.zip';