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
| 127.0.0.1 api.ad.xiaomi.com | |
| 127.0.0.1 sdkconfig.ad.xiaomi.com | |
| 127.0.0.1 ad.mi.com | |
| 127.0.0.1 ad.xiaomi.com | |
| 127.0.0.1 ad1.xiaomi.com | |
| 127.0.0.1 adv.sec.miui.com | |
| 127.0.0.1 test.ad.xiaomi.com | |
| 127.0.0.1 new.api.ad.xiaomi.com |
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/sh | |
| #! /usr/bin/expect -f | |
| certtool --generate-privkey --outfile $1-key.pem | |
| sed -i "1ccn = "${1}"" client.tmpl | |
| sed -i "3cemail = ${1}@abc.org" client.tmpl | |
| certtool --generate-certificate --load-privkey $1-key.pem --load-ca-certificate ca-cert.pem --load-ca-privkey ca-key.pem --template client.tmpl --outfile $1-cert.pem | |
| openssl pkcs12 -export -inkey $1-key.pem -in $1-cert.pem -name "$1 VPN Client Cert" -certfile ca-cert.pem -out $1.cert.p12 |