Documentation ¶
Index ¶
- Variables
- func Catcher(err error, location int, description string)
- func GetPublicKeyDigest(pkey rsa.PublicKey) string
- func Init()
- func PemFile(file io.Reader) *pem.Block
- func SignatureString(alg x509.SignatureAlgorithm) string
- func SignerAlgo(pub crypto.PublicKey, tryAlg string) x509.SignatureAlgorithm
- func WebCatcher(w http.ResponseWriter, err error)
- type CertName
- type ConfigStore
- type Extensions
- type FullCert
- type FullOutput
- type JsonInquiry
- type LiteCert
- type NamedError
- type PrivateData
- func (p *PrivateData) AddHandler(w http.ResponseWriter, r *http.Request)
- func (p *PrivateData) EditHandler(w http.ResponseWriter, r *http.Request)
- func (p *PrivateData) FetchHandler(w http.ResponseWriter, r *http.Request)
- func (p *PrivateData) IcalHandler(w http.ResponseWriter, r *http.Request)
- func (p *PrivateData) MainHandler(w http.ResponseWriter, r *http.Request)
- func (p *PrivateData) PrivateKeyHandler(w http.ResponseWriter, r *http.Request)
- func (p *PrivateData) RemoteCertIndex(w http.ResponseWriter, r *http.Request)
- func (p *PrivateData) RemoteURLHandler(w http.ResponseWriter, r *http.Request)
- func (p *PrivateData) RespondJSONHandler(w http.ResponseWriter, r *http.Request)
- func (p *PrivateData) ServePemHandler(w http.ResponseWriter, r *http.Request)
- func (p *PrivateData) ViewHandler(w http.ResponseWriter, r *http.Request)
- func (p *PrivateData) X509CertHandler(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
View Source
var DebugSet = false
View Source
var ForceError = false
Functions ¶
func GetPublicKeyDigest ¶
GetPublicKeyDigest: returns RSA public key modulus MD5 hash. TODO: support other key types
func SignatureString ¶
func SignatureString(alg x509.SignatureAlgorithm) string
SignatureString ... sourced from cfssl, translate known signature type to string
func SignerAlgo ¶
func SignerAlgo(pub crypto.PublicKey, tryAlg string) x509.SignatureAlgorithm
SignerAlgo ... take public key determine permissible algorithms, attempt user selected algorithm, can be blank
Types ¶
type CertName ¶
type CertName struct { CommonName string `json:"common_name,omitempty" db:"common_name"` SerialNumber string `json:"serial_number,omitempty" db:"serial_number"` Country string `json:"country,omitempty" db:"country"` Organization string `json:"organization,omitempty" db:"organization"` OrganizationalUnit string `json:"organizational_unit,omitempty" db:"organizational_unit"` Locality string `json:"locality,omitempty" db:"locality"` Province string `json:"province,omitempty" db:"province"` StreetAddress string `json:"street_address,omitempty" db:"street_address"` PostalCode string `json:"postal_code,omitempty" db:"postal_code"` Business string //2.5.4.15 Email string //1.2.840.113549.1.9.1 }
type ConfigStore ¶
type Extensions ¶
type Extensions struct { AKI string `json:"authority_key_id,omitempty" db:"authority_key_id"` SKI string `json:"subject_key_id,omitempty" db:"subject_key_id"` AltNames string `json:"alt_names_string,omitempty" db:"alt_names"` Sans []string `json:"sans,omitempty" db:"sans"` KeyUsage []string `json:"key_capabilities,omitempty" db:"key_usage"` ExtraData nonStandardExt `json:"payload,omitempty" db:""` }
type FullCert ¶
type FullCert struct { Subject CertName `json:"subject,omitempty" db:""` Issuer LiteCert `json:"issuer" db:"issuer"` SerialNumber string `json:"serial_number,omitempty" db:"serial_number"` NotBefore time.Time `json:"not_before" db:"not_before"` NotAfter time.Time `json:"not_after" db:"not_after"` SignatureAlgorithm string `json:"sigalg" db:"signature_algorithm"` Signature string `json:"signature_hash" db:"signature"` PEM string `json:"pem" db:"pem"` Key jKey `json:"key" db:""` Extensions Extensions `json:"extensions,omitempty" db:""` }
type FullOutput ¶
type JsonInquiry ¶
type JsonInquiry struct { Service string `json:"service,omitempty" db:"service"` Type string `json:"type,omitempty" db:"type"` Category string `json:"category,omitempty" db:"category"` Port int `json:"port,omitempty" db:"port"` Tls bool `json:"tls,omitempty" db:"tls"` Ipv6 bool `json:"ipv6,omitempty" db:"ipv6"` Protocol string `json:"protocol,omitempty" db:"protocol"` Hostname string `json:"hostname,omitempty" db:"hostname"` }
type NamedError ¶
type PrivateData ¶
type PrivateData struct { MainAction string // contains filtered or unexported fields }
This is "secret" data, therefore named private
func (*PrivateData) AddHandler ¶
func (p *PrivateData) AddHandler(w http.ResponseWriter, r *http.Request)
func (*PrivateData) EditHandler ¶
func (p *PrivateData) EditHandler(w http.ResponseWriter, r *http.Request)
func (*PrivateData) FetchHandler ¶
func (p *PrivateData) FetchHandler(w http.ResponseWriter, r *http.Request)
func (*PrivateData) IcalHandler ¶
func (p *PrivateData) IcalHandler(w http.ResponseWriter, r *http.Request)
func (*PrivateData) MainHandler ¶
func (p *PrivateData) MainHandler(w http.ResponseWriter, r *http.Request)
func (*PrivateData) PrivateKeyHandler ¶
func (p *PrivateData) PrivateKeyHandler(w http.ResponseWriter, r *http.Request)
func (*PrivateData) RemoteCertIndex ¶
func (p *PrivateData) RemoteCertIndex(w http.ResponseWriter, r *http.Request)
func (*PrivateData) RemoteURLHandler ¶
func (p *PrivateData) RemoteURLHandler(w http.ResponseWriter, r *http.Request)
func (*PrivateData) RespondJSONHandler ¶
func (p *PrivateData) RespondJSONHandler(w http.ResponseWriter, r *http.Request)
POST, PEM cert, respond with cert details
func (*PrivateData) ServePemHandler ¶
func (p *PrivateData) ServePemHandler(w http.ResponseWriter, r *http.Request)
func (*PrivateData) ViewHandler ¶
func (p *PrivateData) ViewHandler(w http.ResponseWriter, r *http.Request)
func (*PrivateData) X509CertHandler ¶
func (p *PrivateData) X509CertHandler(w http.ResponseWriter, r *http.Request)
GET
Click to show internal directories.
Click to hide internal directories.