Closed Bug 1551847 Opened 6 years ago Closed 6 years ago

Generated VPN config missing username, incorrectly-formatted

Categories

(Websites :: login.mozilla.com, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mhentges, Assigned: rtucker)

Details

When generating VPN config, I ran into two issues:

  1. Regardless of the platform that I downloaded the bundle for, I found that username.txt was empty and (for Linux) the nmcli username-config commands were missing the username value, e.g.:
nmcli connection import type openvpn file openvpn.ber3.mozilla.com.ovpn
nmcli connection modify openvpn.ber3.mozilla.com connection.id openvpn.ber3
nmcli connection modify openvpn.ber3 ipv4.never-default true ipv6.never-default true
nmcli connection modify openvpn.ber3 +vpn.data username= # see here
nmcli connection modify openvpn.ber3 +vpn.data password-flags=0
nmcli connection modify openvpn.ber3 +vpn.secrets password=push
  1. The .ovpn files are incorrectly formatted - there are newlines encoded as the string "\n" and some certs are wrapped in Python's b'...' quoting. For example (note that I've replaced all the non-"\n" contents with "."):
<cert>
b'-----BEGIN CERTIFICATE-----\n................................................................\n................................................................\n................................................................\n................................................................\n................................................................\n................................................................\n................................................................\n................................................................\n................................................................\n................................................................\n................................................................\n................................................................\n................................................................\n................................................................\n................................................................\n................................................................\n................................................................\n................................................................\n................................................................\n................................................................\n................................................................\n................................................................\n................................................................\n................................................................\n................................................................\n................................................................\n................................................................\n................................................................\n................................................................\n................................................................\n................................................................\n................................................................\n................................................................\n................................................................\n................................................................\n...........=\n-----END CERTIFICATE-----\n'</cert>

To reproduce:

  1. Go to login.mozilla.com
  2. Go to OpenVPN
  3. Download any VPN bundle
Assignee: nobody → rtucker

I've resolved the bytestring issues. Still working on the empty username. I should have that figured out soon.

username file is now working.

Mind testing again?

Looks good! Bytestrings and gone and username.txt is generated :)

Going to close this out.

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.