diff options
Diffstat (limited to 'templates/generate/vpn')
6 files changed, 11 insertions, 0 deletions
diff --git a/templates/generate/vpn/node.def b/templates/generate/vpn/node.def new file mode 100644 index 0000000..900850e --- /dev/null +++ b/templates/generate/vpn/node.def @@ -0,0 +1 @@ +help: VPN key generation utility diff --git a/templates/generate/vpn/rsa-key/bits/node.def b/templates/generate/vpn/rsa-key/bits/node.def new file mode 100644 index 0000000..548e101 --- /dev/null +++ b/templates/generate/vpn/rsa-key/bits/node.def @@ -0,0 +1 @@ +help: Generate local RSA key with specified number of bits diff --git a/templates/generate/vpn/rsa-key/bits/node.tag/node.def b/templates/generate/vpn/rsa-key/bits/node.tag/node.def new file mode 100644 index 0000000..fa2fed2 --- /dev/null +++ b/templates/generate/vpn/rsa-key/bits/node.tag/node.def @@ -0,0 +1,3 @@ +help: Generate local RSA key with specified number of bits +run: sudo /opt/vyatta/bin/sudo-users/gen_local_rsa_key.pl "$5" /dev/random +allowed: echo -n '<16-4096>' diff --git a/templates/generate/vpn/rsa-key/bits/node.tag/random/node.def b/templates/generate/vpn/rsa-key/bits/node.tag/random/node.def new file mode 100644 index 0000000..42118b5 --- /dev/null +++ b/templates/generate/vpn/rsa-key/bits/node.tag/random/node.def @@ -0,0 +1 @@ +help: Generate local RSA key with specified number of bits and random device diff --git a/templates/generate/vpn/rsa-key/bits/node.tag/random/node.tag/node.def b/templates/generate/vpn/rsa-key/bits/node.tag/random/node.tag/node.def new file mode 100644 index 0000000..eb11433 --- /dev/null +++ b/templates/generate/vpn/rsa-key/bits/node.tag/random/node.tag/node.def @@ -0,0 +1,3 @@ +help: Generate local RSA key with specified number of bits and random device +run: sudo /opt/vyatta/bin/sudo-users/gen_local_rsa_key.pl "$5" "$7" +allowed: echo -n '/dev/random /dev/urandom' diff --git a/templates/generate/vpn/rsa-key/node.def b/templates/generate/vpn/rsa-key/node.def new file mode 100644 index 0000000..60296f2 --- /dev/null +++ b/templates/generate/vpn/rsa-key/node.def @@ -0,0 +1,2 @@ +help: Generate local RSA key (default: bits=2192 device=/dev/random) +run: sudo /opt/vyatta/bin/sudo-users/gen_local_rsa_key.pl 2192 /dev/random |