3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-21 13:29:25 +01:00

tools: ios_convert: embed certs rather than using paths

This commit is contained in:
James Prestwood 2019-10-07 13:27:27 -07:00 committed by Denis Kenzior
parent 8885135e63
commit c4ecf2c5c6

View File

@ -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,11 @@ def write_network(network, root_ca_path):
output += "\n"
if root_ca_path:
output += "[@pem@root_ca]\n"
with open(root_ca_path) as f:
output += f.read()
print("Provisioning network %s\n" % conf_file)
if args.verbose: