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

...cate

https://bugzilla.redhat.com/show_bug.cgi?id=915473