aboutsummaryrefslogtreecommitdiffstats
path: root/dmvpn-ca
diff options
context:
space:
mode:
Diffstat (limited to 'dmvpn-ca')
-rwxr-xr-xdmvpn-ca11
1 files changed, 11 insertions, 0 deletions
diff --git a/dmvpn-ca b/dmvpn-ca
index 69439a2..e63e533 100755
--- a/dmvpn-ca
+++ b/dmvpn-ca
@@ -1131,6 +1131,17 @@ output = scan_choice(
)
)
+ local hosts = config.hub.hosts
+ if hosts then
+ cert:addExtension(
+ x509ext.new(
+ dmvpn.OID_HUB_HOSTS,
+ 'DER',
+ asn1.sequence_of(asn1.ia5string).encode(hosts)
+ )
+ )
+ end
+
local net_config = {}
local pr_config = {}
for subnet in get_subnets() do