Commit 429cd23a authored by Heiko Reese's avatar Heiko Reese
Browse files

Added viewcert redirect

parent 62c5a27d
......@@ -169,7 +169,7 @@ func main() {
r := mux.NewRouter()
// add redirect handler
r.Path("/redirect/{dowhat:getcert|installcert}/{serial:[0-9]+}").
r.Path("/redirect/{dowhat:getcert|installcert|viewcert}/{serial:[0-9]+}").
Methods("GET").
HandlerFunc(redirectHandler)
......
......@@ -14,6 +14,7 @@ var (
RedirTemplates = map[string]string{
"getcert": "https://pki.pca.dfn.de/%s/cgi-bin/pub/pki?cmd=send_email_cert&type=email&dataType=CERTIFICATE&key=%s",
"installcert": "https://pki.pca.dfn.de/%s/cgi-bin/pub/pki?cmd=getcert&type=CERTIFICATE&key=%s",
"viewcert": "https://pki.pca.dfn.de/%s/cgi-bin/pub/pki?cmd=viewCert;dataType=CERTIFICATE;key=%s",
}
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment