Closed
Bug 1551847
Opened 6 years ago
Closed 6 years ago
Generated VPN config missing username, incorrectly-formatted
Categories
(Websites :: login.mozilla.com, defect)
Websites
login.mozilla.com
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mhentges, Assigned: rtucker)
Details
When generating VPN config, I ran into two issues:
- Regardless of the platform that I downloaded the bundle for, I found that
username.txtwas empty and (for Linux) thenmcliusername-config commands were missing theusernamevalue, 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
- The
.ovpnfiles are incorrectly formatted - there are newlines encoded as the string "\n" and some certs are wrapped in Python'sb'...'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:
- Go to login.mozilla.com
- Go to OpenVPN
- Download any VPN bundle
| Assignee | ||
Updated•6 years ago
|
Assignee: nobody → rtucker
| Assignee | ||
Comment 1•6 years ago
|
||
I've resolved the bytestring issues. Still working on the empty username. I should have that figured out soon.
| Assignee | ||
Comment 2•6 years ago
|
||
username file is now working.
Mind testing again?
| Reporter | ||
Comment 3•6 years ago
|
||
Looks good! Bytestrings and gone and username.txt is generated :)
| Assignee | ||
Comment 4•6 years ago
|
||
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.
Description
•