assert isset auth_alg
assert isset key_mgmt
- # Read CA certificate
+ # Certificate Paths
local ca_cert_path="${NETWORK_WIRELESS_NETWORKS_DIR}/${handle}/ca.pem"
+ local client_cert_path="${NETWORK_WIRELESS_NETWORKS_DIR}/${handle}/client.pem"
+ local client_key_path="${NETWORK_WIRELESS_NETWORKS_DIR}/${handle}/client.key"
print_indent 0 "# ${SSID}"
print_indent 0 "network={"
print
fi
+ # Client Certificate
+ if file_exists "${client_cert_path}" && file_exists "${client_key_path}"; then
+ print_indent 1 "# Client Certificate"
+ print_indent 1 "client_cert=\"${client_cert_path}\""
+ print_indent 1 "private_key=\"${client_key_path}\""
+ print
+ fi
+
# Validate server certificates
if file_exists "${ca_cert_path}"; then
print_indent 1 "ca_cert=\"${ca_cert_path}\""