diff options
| author | Mitch Riedstra <Mitch@riedstra.us> | 2016-11-04 21:05:45 -0400 |
|---|---|---|
| committer | Mitch Riedstra <Mitch@riedstra.us> | 2016-11-04 21:05:45 -0400 |
| commit | 34a92b6e11e62804bd62d4366bfdfbc992d10cfa (patch) | |
| tree | 16a52674b0d49db0a195c5aa3b4d7dfd1c072a3e /mkshrc | |
| parent | e439db7f9cf0ae2aaea1d2615c5ff523d1243346 (diff) | |
| download | dotfiles-34a92b6e11e62804bd62d4366bfdfbc992d10cfa.tar.gz dotfiles-34a92b6e11e62804bd62d4366bfdfbc992d10cfa.tar.xz | |
Remove SSL bullshit and change the position of the enviornment variables section
Diffstat (limited to 'mkshrc')
| -rw-r--r-- | mkshrc | 44 |
1 files changed, 10 insertions, 34 deletions
@@ -122,32 +122,6 @@ setcoloraliases() { alias search='egrep --color=auto -rnI'; alias t='tree -CdL' } -#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -# ____ ____ _ _____ _ _ -# / ___/ ___|| | | ___| _ _ __ ___| |_(_) ___ _ __ ___ -# \___ \___ \| | | |_ | | | | '_ \ / __| __| |/ _ \| '_ \/ __| -# ___) |__) | |___ | _|| |_| | | | | (__| |_| | (_) | | | \__ \ -# |____/____/|_____| |_| \__,_|_| |_|\___|\__|_|\___/|_| |_|___/ -# -#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -mkrootcrt() { - name="$1" - $openssl genpkey -algorithm RSA -out ${name}.key -aes-128-cbc -pkeyopt rsa_keygen_bits:4096 - $openssl req -x509 -new -nodes -key ${name}.key -days 20000 -out ${name}.pem -} -# Depnds on ENV variable CA_CERT and CA_KEY -gencrt() { - name="$1" - $openssl genpkey -algorithm RSA -out ${name}.key -pkeyopt rsa_keygen_bits:4096 - $openssl req -new -key ${name}.key -out ${name}.csr - $openssl x509 -req -in ${name}.csr -CA $CA_CERT -CAkey $CA_KEY \ - -CAcreateserial -out ${name}.crt -days 365 -} -gencsr() { - name="$1" - $openssl genpkey -algorithm RSA -out ${name}.key -pkeyopt rsa_keygen_bits:4096 - $openssl req -new -key ${name}.key -out ${name}.csr -} # Usage debugstarttls $ipaddr:$port debugstarttls() { openssl s_client -starttls smtp -crlf -connect $1 $2 @@ -547,19 +521,21 @@ UPDATE_URL="https://www.rygel.us/etc/" FANCY_PROMPT=1 COLOR=1 -############################################################ -########## Enviroment variables -export PAGER="less" - # For use with SSL functions -export openssl="openssl" -export CA_CERT="/srv/ssl/root.pem" -export CA_KEY="/srv/ssl/root.key" - +# Just use easy-rsa, it's less hassle # Load our system profile . /etc/profile + +############################################################ +########## Enviroment variables +export PAGER="less" +export EDITOR="vi" +export PATH="$HOME/bin:$PATH" +export VISUAL="$EDITOR" + + # Load pre config if [ -e $PRELOAD ] ; then . $PRELOAD |
