If NUMBER is higher than make-secnet-sites supports,
it writes out what it can.
+ --pubkeys-dir PUBKEYS
+
+ Specifies the live pubkeys area pathname.
+ The default is /var/lib/secnet/pubkeys.
+
+ Key files are named
+ PUBKEYS/peer.<mangled-peer-name>[~...]
+ mangled-peer-name is chosen by make-secnet-sites
+ / => ,
+
--debug | -D
Increase amount of debugging output.
global key_prefix
global debug_level
global output_version
+ global pubkeys_dir
ap = argparse.ArgumentParser(description='process secnet sites files')
ap.add_argument('--userv', '-u', action='store_true',
ap.add_argument('--conf-key-prefix', action=ActionNoYes,
default=True,
help='prefix conf file key names derived from sites data')
+ ap.add_argument('--pubkeys-dir', nargs=1,
+ help='public key directory',
+ default=['/var/lib/secnet/pubkeys'])
ap.add_argument('--output-version', nargs=1, type=int,
help='sites file output version',
default=[max_version])
prefix = '' if av.prefix is None else av.prefix[0]
key_prefix = av.conf_key_prefix
output_version = av.output_version[0]
+ pubkeys_dir = av.pubkeys_dir[0]
if service:
if len(av.arg)!=4:
print("Wrong number of arguments")
'peer':"Gateway address of the site",
'pub':"public key of the site",
}
+ def mangle_name(self):
+ return self.name.replace('/',',')
+ def pubkeys_path(self):
+ return pubkeys_dir + '/peer.' + self.mangle_name()
def __init__(self,w):
level.__init__(self,w)
def output_data(self,w,path):