godomaincert

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2019 License: MIT Imports: 7 Imported by: 0

README

godomaincert

Build Status Go Report Card MIT

A Go module for requesting and validating Amazon Web Services certificates for domains.

Example

To create a cerificate for "htmlbook.io" which includes all of its subdomains:

package main

import (
    "github.com/cariad/godomaincert"
)

func main() {
	opts := godomaincert.RequestCertificateOptions{
		DomainName:            "htmlbook.io",
		AdditionalDomainNames: []string{"*.htmlbook.io"},
	}

	godomaincert.RequestCertificate(opts)
}

Licence, credit & sponsorship

This project is published under the MIT Licence.

You don't owe me anything in return, but as an indie freelance coder there are two things I'd appreciate:

  • Credit. If your app or documentation has a credits page, please consider mentioning the projects you use.
  • Cash. If you want and are able to support future development, please consider becoming a patron or buying me a coffee. Thank you!

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequestCertificate

func RequestCertificate(opts RequestCertificateOptions) (string, error)

RequestCertificate requests and verifies a certificate for a domain.

Types

type RequestCertificateOptions

type RequestCertificateOptions struct {
	DomainName            string
	AdditionalDomainNames []string
}

RequestCertificateOptions describes options for requesting a certificate.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL