Worked around the invalid certificate error by requesting through http