This gist contains lists of modules available in
in AWS Lambda.
This gist contains lists of modules available in
in AWS Lambda.
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # | |
| # gencert.py | |
| # | |
| # Copyright 2013 tunnelshade <blog.tunnelshade.in> | |
| # | |
| # * openssl genrsa -des3 -out ca.key 1024 | |
| # | |
| # * openssl req -new -x509 -days 3650 -key ca.key -out ca.crt |
| #! /usr/bin/python | |
| """ | |
| This simple script makes it easy to create server certificates | |
| that are signed by your own Certificate Authority. | |
| Mostly, this script just automates the workflow explained | |
| in http://www.tc.umn.edu/~brams006/selfsign.html. | |
| Before using this script, you'll need to create a private |
| #!/bin/sh | |
| # Warranty request script for Dell PCs | |
| # Written by Adam Nielsen <adam.nielsen@uq.edu.au> | |
| # This code is in the public domain, and is supplied with no warranty. | |
| # | |
| # This script uses Dell's web service to retrieve the most distant warranty expiration | |
| # date for a given machine, as identified by its service tag. It requires curl and awk. | |
| # It doesn't parse the WSDL or anything nice like that, it just sends a precomposed | |
| # request to the server and extracts the relevant info from the response. |
| """ | |
| Tools for creating a CA cert and signed server certs. | |
| Divined from http://svn.osafoundation.org/m2crypto/trunk/tests/test_x509.py | |
| The mk_temporary_xxx calls return a NamedTemporaryFile with certs. | |
| Usage ; | |
| # Create a temporary CA cert and it's private key | |
| cacert, cakey = mk_temporary_cacert() |