Skip to content

Instantly share code, notes, and snippets.

@saulopaiva
saulopaiva / extract-pfx.sh
Created November 4, 2021 16:17 — forked from tomfanning/extract-pfx.sh
Shell script to extract certificate and key files suitable for nginx from a PFX file.
#!/bin/bash
set -e
if [ "$#" -ne 1 ]; then
echo "Usage: $0 filename.pfx" >&2
exit 1;
fi
if [ ! -e "$1" ]; then
echo "File not found: $1" >&2
@saulopaiva
saulopaiva / make_certs.sh
Created March 31, 2020 18:55 — forked from mediaupstream/make_certs.sh
extract ca-certs, key, and crt from a pfx file
#!/bin/bash
#
# Usage:
# ./make_certs.sh test.example.com
#
# The required input to make_certs.sh is the path to your pfx file without the .pfx prefix
#
# test.example.com.key
# test.example.com.crt (includes ca-certs)
@saulopaiva
saulopaiva / install-fuelphp.sh
Last active September 2, 2017 21:52 — forked from kenjis/install-fuelphp.sh
Instalação do FuelPHP usando submodules do Git
#!/bin/sh
# FuelPHP Install Script
#
# @author Kenji Suzuki https://github.com/kenjis
# @copyright 2011 Kenji Suzuki
# @license MIT License http://www.opensource.org/licenses/mit-license.php
if [ $# -lt 2 ]; then
echo "Install FuelPHP and Create Application Repository"