sendtoserveridsigner

This commit is contained in:
arnaucode
2017-12-28 16:15:09 +01:00
parent 4898cae5c0
commit f0aa841275
12 changed files with 157 additions and 34 deletions

View File

@@ -22,7 +22,12 @@ type User struct {
func Index(w http.ResponseWriter, r *http.Request) {
//TODO return the public key, to allow others verifign signed strings by this server
fmt.Fprintln(w, "serverIDsigner")
jResp, err := json.Marshal(serverRSA.PubK)
if err != nil {
panic(err)
}
fmt.Fprintln(w, string(jResp))
}
func Signup(w http.ResponseWriter, r *http.Request) {