915473 - fixing login api to return a json document with key and certificate