Merge lp:~jani/goget-ubuntu-touch/tls-skip-verify into lp:goget-ubuntu-touch
Proposed by
Jani Monoses
Status: | Merged |
---|---|
Approved by: | Sergio Schvezov |
Approved revision: | 35 |
Merged at revision: | 36 |
Proposed branch: | lp:~jani/goget-ubuntu-touch/tls-skip-verify |
Merge into: | lp:goget-ubuntu-touch |
Diff against target: |
106 lines (+28/-13) 4 files modified
ubuntu-device-flash/args.go (+10/-9) ubuntu-device-flash/main.go (+3/-0) ubuntuimage/channels.go (+14/-2) ubuntuimage/images.go (+1/-2) |
To merge this branch: | bzr merge lp:~jani/goget-ubuntu-touch/tls-skip-verify |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Sergio Schvezov | Approve | ||
PS Jenkins bot | continuous-integration | Approve | |
Review via email: mp+216141@code.launchpad.net |
Commit message
ubuntuimage: allow disabling the verification of TLS certificates.
Description of the change
Allow disabling the verification of TLS certificates via a command line flag, useful for connecting to servers using self-signed certificates.
Without the flag set the error looks like this
2014/04/16 18:02:28 Get https:/
To post a comment you must log in.
The naming could probably be better. Also unless this is the only arg we want to pass to the ubuntuimage code another function will be required, linke ubuntuimage. Initialize( args). I initially had HTTPOptions() until I realized I do not need to pass explicit args for HTTP basic authentication, as they can be part of the URL like http:// user:pass@ server/...