Arquivo da tag: HTTPS

Certificado com o IRIS

package main

import (
	"github.com/kataras/iris"
	"github.com/kataras/iris/context"
)

func main() {
	app := iris.New()

	app.Get("/", func(ctx context.Context) {
		ctx.Writef("Hello from the SECURE server")
	})

	// start the server (HTTPS) on port 443
	app.Run(iris.TLS("127.0.0.1:443", "mycert.cert", "mykey.key"))
}
https://chekun.me/post/iris-from-scratch-02-listen-and-configuration/

Share and Enjoy !

0Shares
0 0 0