Bootstrapping subdomain
Could be that this is a platform bug. Removed my ~/.config/leap/, started bitmask_core: 0.10a1+99.gcfd8b50e, tried to login to a leap.se account. The provider.json points to https://api.user.leap.se:4430/, on second run things work as expected.
2017-07-11T13:28:33+0200 [leap.bitmask.bonafide.config.Provider#warn] Cannot download services config yet, need auth
2017-07-11T13:28:33+0200 [leap.bitmask.core.mail_services.SoledadService#debug] Service MX is not ready...
2017-07-11T13:28:33+0200 [leap.bitmask.bonafide._protocol.BonafideProtocol#debug] AUTH for kwadronaut@leap.se
2017-07-11T13:28:33+0200 [leap.bitmask.bonafide.session.Session#debug] POST to https://api.leap.se:4430/1/sessions
2017-07-11T13:28:34+0200 [twisted.web.client._HTTP11ClientFactory#info] Starting factory <twisted.web.client._HTTP11ClientFactory instance at 0x7f3400694b00>
2017-07-11T13:28:34+0200 [leap.bitmask.core.dispatcher#error] [DISPATCHER] Unexpected error!
2017-07-11T13:28:34+0200 [leap.bitmask.core.dispatcher#error] ResponseNeverReceived([<twisted.python.failure.Failure service_identity.exceptions.VerificationError: VerificationError(errors=[DNSMismatch(mismatched_id=DNS_ID(hostname='api.leap.se'))])>],)
2017-07-11T13:28:34+0200 [leap.bitmask.core.dispatcher#error] Traceback (most recent call last):
Failure: twisted.web._newclient.ResponseNeverReceived: [<twisted.python.failure.Failure service_identity.exceptions.VerificationError: VerificationError(errors=[DNSMismatch(mismatched_id=DNS_ID(hostname='api.leap.se'))])>]
Assigning to myself to reproduce, could have happened due to bad network (in which case, Bitmask should give it a second try and not keep forever at the login window).