Added auth challenge TODO: chain certificates