June 19, 2017

Let's Encrypt Cisco IOS

letsencrypt --manual --perferred-challenges dns certonly -d home-router.wjw.nz



openssl rsa -des -in /etc/letsencrypt/live/home-router.wjw.nz/privkey.pem -out /etc/letsencrypt/live/home-router.wjw.nz/privkey-enc.pem

cat /etc/letsencrypt/live/home-router.wjw.nz/privkey-enc.pem

openssl pkey -des -in /etc/letsencrypt/live/home-router.wjw.nz/privkey.pem -pubout /etc/letsencrypt/live/home-router.wjw.nz/pubkey.pem

crypto key import rsa home-router.wjw.nz.pem exportable pem encryption terminal @Password@

Paste the contents of public key pubkey.pem and type quit on a single line.
Paste the contents of the password protected private key privkey-enc.pem and type quit on a single line.
If the key is accepted, you should read

https://community.letsencrypt.org/t/tutorial-get-lets-encrypt-on-cisco-routers-switches/7139

June 06, 2017

Domain Suffix Search - Cisco Option 119

#!/usr/bin/python
import sys
hexlist = []
for domain in sys.argv[1:]:
    for part in domain.split("."):
        hexlist.append("%02x" % len(part))
        for c in part:
            hexlist.append(c.encode("hex"))
    hexlist.append("00")
print "".join([(".%s" % (x) if i and not i % 2 else x) \
    for i, x in enumerate(hexlist)])


root@control:/home/billw# ./ios-search.py wjw.local wjw.nz
0377.6a77.056c.6f63.616c.0003.776a.7702.6e7a.00


ip dhcp pool inside
 network 192.168.1.0 255.255.255.0
 update dns override
 dns-server 192.168.1.24 192.168.1.14 
 domain-name wjw.local
 default-router 192.168.1.1 
 option 119 hex 0377.6a77.056c.6f63.616c.0003.776a.7702.6e7a.00

June 02, 2017

FritzBox, SipGate, DTMF Tones

Edit Telephone Number
set DTMF Transmission to In-Band