2023-01-27 21:37:20 +00:00
|
|
|
// Copyright (c) Tailscale Inc & AUTHORS
|
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
2022-11-07 23:32:53 +00:00
|
|
|
|
|
|
|
package ipnlocal
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
"errors"
|
2023-11-16 20:15:39 +00:00
|
|
|
"time"
|
2022-11-07 23:32:53 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type TLSCertKeyPair struct {
|
|
|
|
CertPEM, KeyPEM []byte
|
|
|
|
}
|
|
|
|
|
2023-10-12 22:52:41 +00:00
|
|
|
func (b *LocalBackend) GetCertPEM(ctx context.Context, domain string) (*TLSCertKeyPair, error) {
|
2022-11-07 23:32:53 +00:00
|
|
|
return nil, errors.New("not implemented for js/wasm")
|
|
|
|
}
|
2023-11-16 20:15:39 +00:00
|
|
|
|
|
|
|
var errCertExpired = errors.New("cert expired")
|
|
|
|
|
|
|
|
type certStore interface{}
|
|
|
|
|
|
|
|
func getCertPEMCached(cs certStore, domain string, now time.Time) (p *TLSCertKeyPair, err error) {
|
|
|
|
return nil, errors.New("not implemented for js/wasm")
|
|
|
|
}
|
|
|
|
|
|
|
|
func (b *LocalBackend) getCertStore() (certStore, error) {
|
|
|
|
return nil, errors.New("not implemented for js/wasm")
|
|
|
|
}
|