• astaxie's avatar
    beego: remove app funciont & fix #590 · 33ad6c13
    astaxie authored
    config := tls.Config{
        ClientAuth: tls.RequireAndVerifyClientCert,
        Certificates: []tls.Certificate{cert},
        ClientCAs: pool,
    }
    config.Rand = rand.Reader
    
    beego.BeeApp.Server. TLSConfig = &config
    33ad6c13
app.go 2.06 KB