All Projects → gin-gonic → Autotls

gin-gonic / Autotls

Licence: mit
Support Let's Encrypt for a Go server application.

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Projects that are alternatives of or similar to Autotls

Acme Client
Let's Encrypt / ACME client written in PHP for the CLI.
Stars: ✭ 337 (+57.48%)
Mutual labels:  tls, letsencrypt
Terraform Provider Acme Old
ACME (Let's Encrypt) Support for Terraform
Stars: ✭ 211 (-1.4%)
Mutual labels:  tls, letsencrypt
Ssl Proxy
🔒 Simple zero-config SSL reverse proxy with real autogenerated certificates (LetsEncrypt, self-signed, provided)
Stars: ✭ 427 (+99.53%)
Mutual labels:  tls, letsencrypt
Manuale
A fully manual Let's Encrypt/ACME client
Stars: ✭ 201 (-6.07%)
Mutual labels:  tls, letsencrypt
Gobetween
☁️ Modern & minimalistic load balancer for the Сloud era
Stars: ✭ 1,631 (+662.15%)
Mutual labels:  tls, letsencrypt
letsencrypt-www
Probably the easiest way to create | renew | deploy certificate
Stars: ✭ 27 (-87.38%)
Mutual labels:  letsencrypt, tls
Kube Cert Manager
Manage Lets Encrypt certificates for a Kubernetes cluster.
Stars: ✭ 518 (+142.06%)
Mutual labels:  tls, letsencrypt
httpsbook
《深入浅出HTTPS:从原理到实战》代码示例、勘误、反馈、讨论
Stars: ✭ 77 (-64.02%)
Mutual labels:  letsencrypt, tls
Acme client
Java ACME Client application
Stars: ✭ 77 (-64.02%)
Mutual labels:  tls, letsencrypt
Netcore Postgres Oauth Boiler
A basic .NET Core website boilerplate using PostgreSQL for storage, Adminer for db management, Let's Encrypt for SSL certificates and NGINX for routing.
Stars: ✭ 57 (-73.36%)
Mutual labels:  tls, letsencrypt
freshcerts
ACME certificate protocol (Let's Encrypt) proxy client with a dashboard and monitoring
Stars: ✭ 59 (-72.43%)
Mutual labels:  letsencrypt, tls
Aenigma
The | state-of-the-art | secure-by-default | one-touch-deployed | XMPP server for everyone.
Stars: ✭ 160 (-25.23%)
Mutual labels:  tls, letsencrypt
cert-manager
Automatically provision and manage TLS certificates in Kubernetes
Stars: ✭ 8,781 (+4003.27%)
Mutual labels:  letsencrypt, tls
Certmagic
Automatic HTTPS for any Go program: fully-managed TLS certificate issuance and renewal
Stars: ✭ 3,864 (+1705.61%)
Mutual labels:  tls, letsencrypt
ssltun
simple secure http proxy server with automic https
Stars: ✭ 33 (-84.58%)
Mutual labels:  letsencrypt, tls
Lego
Let's Encrypt client and ACME library written in Go
Stars: ✭ 4,978 (+2226.17%)
Mutual labels:  tls, letsencrypt
docker-ssl-reverse-proxy
Easy-to-use auto-SSL reverse proxy as a Docker container based on Caddy and Let’s Encrypt
Stars: ✭ 22 (-89.72%)
Mutual labels:  letsencrypt, tls
contruno
A TLS termination proxy as a MirageOS
Stars: ✭ 13 (-93.93%)
Mutual labels:  letsencrypt, tls
Greenlock
Automatic SSL renewal for NodeJS
Stars: ✭ 30 (-85.98%)
Mutual labels:  tls, letsencrypt
Acmetool
🔒 acmetool, an automatic certificate acquisition tool for ACME (Let's Encrypt)
Stars: ✭ 1,882 (+779.44%)
Mutual labels:  tls, letsencrypt

autotls

Build Status Go Report Card GoDoc Join the chat at https://gitter.im/gin-gonic/autotls

Support Let's Encrypt for a Go server application.

example

example for 1-line LetsEncrypt HTTPS servers.

package main

import (
	"log"
	"net/http"

	"github.com/gin-gonic/autotls"
	"github.com/gin-gonic/gin"
)

func main() {
	r := gin.Default()

	// Ping handler
	r.GET("/ping", func(c *gin.Context) {
		c.String(http.StatusOK, "pong")
	})

	log.Fatal(autotls.Run(r, "example1.com", "example2.com"))
}

example for custom autocert manager.

package main

import (
	"log"
	"net/http"

	"github.com/gin-gonic/autotls"
	"github.com/gin-gonic/gin"
	"golang.org/x/crypto/acme/autocert"
)

func main() {
	r := gin.Default()

	// Ping handler
	r.GET("/ping", func(c *gin.Context) {
		c.String(http.StatusOK, "pong")
	})

	m := autocert.Manager{
		Prompt:     autocert.AcceptTOS,
		HostPolicy: autocert.HostWhitelist("example1.com", "example2.com"),
		Cache:      autocert.DirCache("/var/www/.cache"),
	}

	log.Fatal(autotls.RunWithManager(r, &m))
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].