All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tools: ios_convert: embed certs rather than using paths
@ 2019-10-07 20:13 James Prestwood
  0 siblings, 0 replies; only message in thread
From: James Prestwood @ 2019-10-07 20:13 UTC (permalink / raw)
  To: iwd

[-- Attachment #1: Type: text/plain, Size: 1071 bytes --]

---
 tools/ios_convert.py | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/tools/ios_convert.py b/tools/ios_convert.py
index 8aa10113..d3b6cc8d 100755
--- a/tools/ios_convert.py
+++ b/tools/ios_convert.py
@@ -114,7 +114,7 @@ def write_network(network, root_ca_path):
                 output += "EAP-Identity=anonymous\n"
 
         if root_ca_path:
-                output += "EAP-%s-CACert=%s\n" % (eap, root_ca_path)
+                output += "EAP-%s-CACert=embed:root_ca\n" % eap
 
         output += "EAP-%s-Phase2-Method=Tunneled-%s\n" % \
                                                         (eap, network.inner_eap)
@@ -158,6 +158,12 @@ def write_network(network, root_ca_path):
 
         output += "\n"
 
+        if root_ca_path:
+                output += "[@pem(a)root_ca]\n"
+                with open(root_ca_path) as f:
+                        output += f.read()
+                output += '\n'
+
         print("Provisioning network %s\n" % conf_file)
 
         if args.verbose:
-- 
2.17.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-10-07 20:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-07 20:13 [PATCH] tools: ios_convert: embed certs rather than using paths James Prestwood

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.