首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏FreeBuf

    使用Go和Let's Encrypt证书部署HTTPS

    我一直在使用golang.org/x/crypto/acme/autocert,它是由Go的核心开发人员开发的。 现在已经有几个月了,它运行一切正常。 : only %s host is allowed", allowedHost)}httpsSrv = makeHTTPServer()m := autocert.Manager{Prompt: autocert.AcceptTOS ,HostPolicy: hostPolicy,Cache: autocert.DirCache(dataDir),}httpsSrv.Addr = ":443"httpsSrv.TLSConfig = 在我们的例子中,我们将证书缓存到磁盘上,使用的是autocert.DirCache命令。 缓存只是一个界面,所以你可以在一个SQL数据库或Redis中执行你所存储的。 Autocert的文档很好地解释了这一点。 我们的例子假设的是最常见的情况:一个服务器仅响应一个域。你可以很容易地改变这一点。

    2K30发布于 2018-02-28
  • 来自专栏golang从入门到进阶

    Fiber v3 新特性全解析:更快、更强大、更优雅的 Go Web 框架

    示例展开代码语言:GoAI代码解释packagemainimport("crypto/tls""github.com/gofiber/fiber/v3""golang.org/x/crypto/acme/autocert app.Listen(":443",fiber.ListenConfig{TLSMinVersion:tls.VersionTLS12,})//自动证书管理(Let'sEncrypt)certManager:=&autocert.Manager {Prompt:autocert.AcceptTOS,HostPolicy:autocert.HostWhitelist("example.com"),Cache:autocert.DirCache("

    50110编辑于 2026-02-21
  • 来自专栏FreeBuf

    一款针对红队设计的Payload共享托管服务

    usage: pwndrop [start|stop|install|remove|status] [-config <config_path>] [-debug] [-no-autocert] [-no-dns 'pwndrop.ini' in same directory as the executable)-debug : enable debug output-no-autocert : disable

    93720发布于 2020-05-25
  • 来自专栏Golang语言社区

    beego 1.10.0 发布

    #2981 Fix the model can not be registered correctly on Ubuntu 32bit #2997 Feature/yaml #3181 Feature/autocert

    1.3K50发布于 2018-07-26
  • 来自专栏技术一号位指南(小诚信驿站)

    Gin-Web-Framework官方指南中文(下篇)

    import ( "log" "github.com/gin-gonic/autotls" "github.com/gin-gonic/gin" "golang.org/x/crypto/acme/autocert gin.Default() // Ping handler r.GET("/ping", func(c *gin.Context) { c.String(200, "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))

    2.6K50发布于 2019-10-31
  • 来自专栏TIGERB的技术博客

    Go框架解析:echo

    Server: new(http.Server), // 创建一个https的 Server指针 TLSServer: new(http.Server), AutoTLSManager: autocert.Manager { Prompt: autocert.AcceptTOS, }, // 日志实例 Logger: log.New("echo"), // 控制台、日志可以彩色输出的实例 colorer

    1.9K20发布于 2020-10-29
  • 来自专栏FreeBuf

    如何使用Ligolo-ng建立隐蔽的通信信道

    /proxy -autocert # Automatically request LetsEncrypt certificates 工具使用 首先,我们需要在目标设备上启动代理(无需特殊权限): $ .

    1.7K20发布于 2021-10-11
  • 来自专栏云原生实验室

    云原生周报第 1 期 | 2019-06-24~2019-06-28

    Autocert : 一个 Kubernetes 附加组件,可自动向容器中注入 TLS/HTTPS 证书,加密容器之间的通信流量。

    1.8K30发布于 2019-08-29
  • 来自专栏FreeBuf

    Reproxy:一款功能强大的边缘服务器&反向代理工具

    key.pem file [$SSL_KEY] --ssl.acme-location= dir where certificates will be stored by autocert

    1.1K30发布于 2021-07-02
  • 来自专栏Golang语言社区

    Go语言·Web调优详解

    当然,我们还需要证书,这里我们可以使用golang.org/x/crypto/acme/autocert和Letss Encrypt,同时别忘了将http请求重定向到https,如果你的客户端是浏览器,

    1.4K90发布于 2018-03-28
  • 来自专栏哎_小羊

    使用 Jenkins 执行 Go 工程构建镜像

    crypto/acme github.com/astaxie/beego/context github.com/astaxie/beego/vendor/golang.org/x/crypto/acme/autocert crypto/acme github.com/astaxie/beego/context github.com/astaxie/beego/vendor/golang.org/x/crypto/acme/autocert

    5K30发布于 2019-05-25
  • 来自专栏公众号:咻咻ing

    Go Module详细使用教程,包管理不在难

    color latest go: finding github.com/labstack/gommon/log latest go: finding golang.org/x/crypto/acme/autocert

    21.1K71发布于 2020-03-04
  • 来自专栏Golang语言社区

    Go HttpServer 最佳实践

    通过Let’s Encrypt很容易申请, 可以使用golang.org/x/crypto/acme/autocert的GetCertificate函数。

    1.6K00发布于 2018-07-31
  • 来自专栏厉害了程序员

    golang mod 入门

    color latest go: finding github.com/labstack/gommon/log latest go: finding golang.org/x/crypto/acme/autocert

    1K31发布于 2020-12-22
  • 来自专栏golang算法架构leetcode技术php

    echo源码分析

    new(http.Server), // 创建一个https的 Server指针 TLSServer: new(http.Server), AutoTLSManager: autocert.Manager { Prompt: autocert.AcceptTOS, }, // 日志实例 Logger: log.New("echo"), // 控制台、日志可以彩色输出的实例

    4.4K10编辑于 2022-08-02
  • 来自专栏全栈工程师修炼之路

    Kubernetes之Kuboard多集群管理工具安装实践

    10081:10081/tcp \ -p 10081:10081/udp \ # 第 7 行激活 Kuboard 中的 Lets Encrypt 客户端; -e KUBOARD_TLS_AUTOCERT

    14K21编辑于 2022-09-29
  • 来自专栏Kubernetes 与 Devops 干货分享

    基于gitea+drone完成小团队的CI/CD

    DRONE_GITEA_CLIENT_SECRET=xxxxxx - DRONE_GITEA_SERVER=http://localhost:3000/ - DRONE_TLS_AUTOCERT

    3.8K10编辑于 2022-10-31
  • 来自专栏全栈工程师修炼之路

    依托于GitLab持续集成基础配置和使用

    DRONE_RUNNER_CAPACITY=3 \ --env=DRONE_SERVER_HOST=10.0.10.68 \ --env=DRONE_SERVER_PROTO=http \ --env=DRONE_TLS_AUTOCERT

    2.7K20发布于 2020-10-23
领券