diff --git a/pkg/networkmanager/openvpn.jsx b/pkg/networkmanager/openvpn.jsx index 14706a417fa..fa38cb46f57 100644 --- a/pkg/networkmanager/openvpn.jsx +++ b/pkg/networkmanager/openvpn.jsx @@ -85,6 +85,7 @@ export function OpenVPNDialog({ settings, connection, dev }) { cockpit.file(vpnSettings.cert, { superuser: 'try' }).read(), cockpit.file(vpnSettings.key, { superuser: 'try' }).read(), ]); + console.log("promised resolved ?", JSON.stringify({ ca, cert, key }, null, 4)); setCaVal(ca); setCertVal(cert); setKeyVal(key); @@ -107,6 +108,7 @@ export function OpenVPNDialog({ settings, connection, dev }) { const userKeyPath = `${user.home}/.cert/${keyFileName}`; try { + console.log("before submit ?", JSON.stringify({ caVal, certVal, keyVal }, null, 4)); // check if remote or certificates are empty if (!vpnSettings.remote.trim()) throw new Error(_("Remote cannot be empty."));