Skip to content

Commit

Permalink
fix cert configured for alpn certs
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkurt committed Mar 5, 2020
1 parent b9ff81c commit 5cd983c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions api/resource_certificates.go
Expand Up @@ -33,6 +33,8 @@ func (c *Client) GetAppCertificate(appName string, hostname string) (*AppCertifi
app(name: $appName) {
certificate(hostname: $hostname) {
acmeDnsConfigured
acmeAlpnConfigured
configured
certificateAuthority
createdAt
dnsProvider
Expand Down Expand Up @@ -73,6 +75,8 @@ func (c *Client) CheckAppCertificate(appName string, hostname string) (*AppCerti
app(name: $appName) {
certificate(hostname: $hostname) {
acmeDnsConfigured
acmeAlpnConfigured
configured
certificateAuthority
createdAt
dnsProvider
Expand Down Expand Up @@ -113,6 +117,8 @@ func (c *Client) AddCertificate(appName string, hostname string) (*AppCertificat
addCertificate(appId: $appId, hostname: $hostname) {
certificate {
acmeDnsConfigured
acmeAlpnConfigured
configured
certificateAuthority
certificateRequestedAt
dnsProvider
Expand Down
2 changes: 2 additions & 0 deletions api/types.go
Expand Up @@ -248,6 +248,8 @@ type DeploymentStatus struct {
type AppCertificate struct {
ID string
AcmeDNSConfigured bool
AcmeALPNConfigured bool
Configured bool
CertificateAuthority string
CreatedAt time.Time
DNSProvider string
Expand Down
2 changes: 1 addition & 1 deletion cmd/presenters/certificate.go
Expand Up @@ -26,7 +26,7 @@ func (p *Certificate) Records() []map[string]string {

out = append(out, map[string]string{
"Hostname": p.Certificate.Hostname,
"Configured": strconv.FormatBool(p.Certificate.AcmeDNSConfigured),
"Configured": strconv.FormatBool(p.Certificate.Configured),
"Certificate Authority": p.Certificate.CertificateAuthority,
"DNS Provider": p.Certificate.DNSProvider,
"DNS Validation Instructions": p.Certificate.DNSValidationInstructions,
Expand Down

0 comments on commit 5cd983c

Please sign in to comment.