Commit 4d542109 authored by Joanne Hugé's avatar Joanne Hugé

re6st-conf: add country option if location is provided

parent 27a7896b
...@@ -178,6 +178,7 @@ registry %s ...@@ -178,6 +178,7 @@ registry %s
ca %s ca %s
cert %s cert %s
key %s key %s
%s
# increase re6stnet verbosity: # increase re6stnet verbosity:
#verbose 3 #verbose 3
# enable OpenVPN logging: # enable OpenVPN logging:
...@@ -185,7 +186,9 @@ key %s ...@@ -185,7 +186,9 @@ key %s
# uncomment the following 2 lines to increase OpenVPN verbosity: # uncomment the following 2 lines to increase OpenVPN verbosity:
#O--verb #O--verb
#O3 #O3
""" % (config.registry, ca_path, cert_path, key_path)) """ % (config.registry, ca_path, cert_path, key_path,
('country ' + config.location.split(',', 1)[0]) \
if config.location else ''))
print "Sample configuration file created." print "Sample configuration file created."
cn = x509.subnetFromCert(cert) cn = x509.subnetFromCert(cert)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment