In api command, fail if protocol not specified and ssl cert invalid

[#67048868]
Remove unnecessary logic from fake endpoint repo