aboutsummaryrefslogtreecommitdiffstats
path: root/dmvpn-pfx-decode
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2018-05-03 22:25:47 +0300
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2018-07-01 23:05:37 +0300
commitf463c5e14e74ccc64ef5fd52f329c6fbe8877a0b (patch)
treef1e9710922247d357c868054f51def434fa1e59f /dmvpn-pfx-decode
parentdbde2007dd177b7e00ec548337ccd33ae90a29c0 (diff)
downloaddmvpn-tools-f463c5e14e74ccc64ef5fd52f329c6fbe8877a0b.tar.bz2
dmvpn-tools-f463c5e14e74ccc64ef5fd52f329c6fbe8877a0b.tar.xz
get_password function
Diffstat (limited to 'dmvpn-pfx-decode')
-rwxr-xr-xdmvpn-pfx-decode7
1 files changed, 1 insertions, 6 deletions
diff --git a/dmvpn-pfx-decode b/dmvpn-pfx-decode
index 2ec13a9..eecd3f5 100755
--- a/dmvpn-pfx-decode
+++ b/dmvpn-pfx-decode
@@ -19,12 +19,7 @@ if password then
success, key, cert, chain = pcall(pkcs12.parse, data, password)
end
if not success then
- io.stderr:write('Password: ')
- os.execute('stty -echo')
- password = io.read()
- os.execute('stty echo')
- io.stderr:write('\n')
- key, cert, chain = pkcs12.parse(data, password)
+ key, cert, chain = pkcs12.parse(data, dmvpn.get_password())
end
function write_pem_file(dir, data)