Skip to content

Instantly share code, notes, and snippets.

View canariecaf's full-sized avatar

Canadian Access Federation canariecaf

View GitHub Profile
@superseb
superseb / check-rancher.sh
Last active November 12, 2020 19:46
Check Rancher connectivity and certificate chain (check-rancher.sh https://rancher.yourdomain.com or docker run superseb/rancher-check https://rancher.yourdomain.com)
#!/bin/bash
if [[ $DEBUG == "true" ]]; then
set -x
fi
# Check if tools exist
command -v jq >/dev/null 2>&1 || { echo "jq is not installed. Exiting." >&2; exit 1; }
command -v dig >/dev/null 2>&1 || { echo "dig is not installed. Exiting." >&2; exit 1; }
command -v curl >/dev/null 2>&1 || { echo "curl is not installed. Exiting." >&2; exit 1; }
command -v sed >/dev/null 2>&1 || { echo "sed is not installed. Exiting." >&2; exit 1; }
@jovandeginste
jovandeginste / build.sh
Created June 7, 2018 11:55
Build shibboleth from sources
#!/bin/bash
set -e
yum -y install boost-devel zlib-devel openssl-devel libcurl-devel xml-security-c-devel gcc gcc-c++ make file wget httpd-devel unzip tar sed grep patch
(
if ! test -d log4shib-1.0.9; then
wget -c https://shibboleth.net/downloads/log4shib/latest/log4shib-1.0.9.tar.gz -O log4shib-1.0.9.tar.gz
tar xfz log4shib-1.0.9.tar.gz
fi
@zamzterz
zamzterz / oidc-fed.md
Last active November 8, 2018 04:11
Description of model for federations built using OpenID Connect.

OpenID Connect federation model

All JWS's passed between entities MUST contain the "kid" header parameter to allow explicitly signaling a key change to the recipient. Furthermore, all key id's used by an entity MUST be scoped (to avoid name conflicts) by a unique URI managed by the organization owning the entity. In the same way, all JWK's passed between entities must have a scoped key id.

JWS's in the model:

  • Software statements issued by a federation.
@P7h
P7h / jdk_download.sh
Last active May 5, 2025 10:36
Script to download JDK / JRE / Java binaries from Oracle website from terminal / shell / command line / command prompt
##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### #####
### Shell script to download Oracle JDK / JRE / Java binaries from Oracle website using terminal / command / shell prompt using wget.
### You can download all the binaries one-shot by just giving the BASE_URL.
### Script might be useful if you need Oracle JDK on Amazon EC2 env.
### Script is updated for every JDK release.
### Features:-
# 1. Resumes a broken / interrupted [previous] download, if any.
# 2. Renames the file to a proper name with including platform info.