Enforce HTTP->HTTPS if keystore supplied.

@ConnorDoyle