-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.go
26 lines (23 loc) · 867 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// https://www.sslshopper.com/ssl-converter.html
package main
import (
"log"
"net/http"
"raweb/gateway"
"raweb/handlers"
)
func main() {
http.HandleFunc("/request-cert", handlers.ReqCertHandler)
http.HandleFunc("/view-ca", handlers.ViewCAHandler)
http.HandleFunc("/view-profile", handlers.ViewAllProfilesHandler)
http.HandleFunc("/get-crl", handlers.GetLatestCRLHandler)
http.HandleFunc("/api/request-cert", gateway.RESTReqCertHandler)
http.HandleFunc("/api/edit-user", gateway.RESTeditUserHandler)
http.HandleFunc("/api/get-crl", gateway.RESTGetCRLHandler)
http.HandleFunc("/api/ocsp", gateway.OCSPHandler)
// http.HandleFunc("/view-end-entity", handlers.ViewEndEntityHandler)
log.Println("Server starting on :4444...")
if err := http.ListenAndServe(":4444", nil); err != nil {
log.Fatalf("Server failed: %s", err)
}
}