Skip to content

Instantly share code, notes, and snippets.

@SteveSimpson
SteveSimpson / zimbra_lets_encrypt_deploy.bash
Created August 1, 2021 16:17
Cron script to deploy new Let's Encrypt Cert to Zimbra
#!/bin/bash
#
# /usr/local/scripts/zimbra_lets_encrypt_deploy.bash
# This installs new certificates for zimbra.
# Let's encrypt / ACME stuff works great for renewing certificates, just not for installing them in Zimbra.
# This script does the latter, not the former.
#
# Steve Simpson
# 8/1/2021
@SteveSimpson
SteveSimpson / exercise1.php
Created June 28, 2018 22:16
exercise1.php
<?php
$numberOfDays = 7; // 90 in production, 7 days should be good for testing
/*
1. Using the Red Hat Security API at https://access.redhat.com/labs/securitydataapi/ , write code that creates a report containing all Red Hat security advisories for the past 90 days. This report should include:
- the RHSA identifier (e.g. RHSA-2018:1944)
- the advisory release date