Documentation ¶
Index ¶
Constants ¶
const OrganizationName = "Česká republika - Generální finanční ředitelství"
OrganizationName is the legal name that the organization is registered with authority at the national level.
const PlaygroundURL = "https://pg.eet.cz/eet/services/EETServiceSOAP/v3"
PlaygroundURL is the URL of the playground EET system.
const ProductionURL = "https://prod.eet.cz/eet/services/EETServiceSOAP/v3"
ProductionURL is the URL of the production EET system.
Variables ¶
var ErrInvalidCertificate = errors.New("invalid certificate or private key")
ErrInvalidCertificate is returned if a given certificate or private key is invalid.
var ErrInvalidKeyPair = errors.New("invalid certificate/private-key KeyPair")
ErrInvalidKeyPair is returned if a certificate/private-key KeyPair is invalid.
var ErrInvalidOrganizationName = errors.New("invalid organization name")
ErrInvalidOrganizationName is returned if the organization name of a certificate is invalid.
var ErrNotCACertificate = errors.New("not CA's certificate")
ErrNotCACertificate is returned if a non-CA's certificate is provided where the one is being expected.
var ErrNotTrustedCertificate = errors.New("certificate issued or signed by an unknown authority")
ErrNotTrustedCertificate is returned if a certificate is issued or signed by an unknown authority and can't be trusted.
Functions ¶
This section is empty.
Types ¶
type CAService ¶ added in v0.3.0
type CAService interface { VerifyDSig(cert *x509.Certificate) error ParseTaxpayerCertificate(data []byte, password string) (*x509.Certificate, *rsa.PrivateKey, error) }
CAService verifies certificates signed off by trusted CAs.
func NewCAService ¶ added in v0.3.0
func NewCAService(eetRoots []*x509.Certificate, dsigPool *x509.CertPool) CAService
NewCAService returns a CAService implementation with the given certificate pools for verifying both issued taxpayers' certificates and digital signatures.