This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Outputs our list of networks | |
sudo iwlist wlan0 scan | |
#configure before joining | |
sudo iwconfig wlan0 ap 00:18:E7:D1:C2:32 #mac of router to join | |
sudo iwconfig wlan0 essid dlink #name of network | |
sudo iwconfig wlan0 freq 2.437 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#This script creates a ca and signs a client key and configures | |
# the database. | |
#Configure the Root CA | |
mkdir ca | |
cd ca | |
mkdir certs crl newcerts private | |
echo "01" > serial |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#create our key pairs | |
openssl genrsa -out private.pem 2048 | |
openssl rsa -in private.pem -pubout -out public.pem | |
#sign and verify | |
openssl dgst -sha1 -sign private.pem -out "$0".sha1 $0 | |
openssl dgst -sha1 -verify public.pem -signature "$0".sha1 $0 |