Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
KIT-CA
websearch
Commits
429cd23a
Commit
429cd23a
authored
May 04, 2017
by
Heiko Reese
Browse files
Added viewcert redirect
parent
62c5a27d
Changes
2
Hide whitespace changes
Inline
Side-by-side
ca-websearch/daemon.go
View file @
429cd23a
...
...
@@ -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
)
...
...
redirect.go
View file @
429cd23a
...
...
@@ -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"
,
}
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment