package
0.0.0-20230915092730-116ca14b7616
Repository: https://github.com/sapcc/arc.git
Documentation: pkg.go.dev
# Functions
CertExpirationDate return the notAfter attribute of the cert.
CertExpiresIn returns expiration time in hours (int64).
CheckAndRenewCert check with the threshold and renew the cert int64 --> hours left to the expiration date.
CreateSignReqCert Creates a signing request cert PEM Block from a private key.
CreateSignReqCertAndPrivKey Creates a signing request cert and private key SignatureAlgorithm is x509.ECDSAWithSHA256.
CreateTestToken save a test token in the db.
CreateToken return a new sign token.
GetTestToken get a saved token.
No description provided by the author
No description provided by the author
RenewCert renew the cert.
No description provided by the author
No description provided by the author
SetupSigner initializes the Signer.
No description provided by the author
SignToken sign a given token returning the certificate.
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
SignForbidden should be used to return a 403.
No description provided by the author
No description provided by the author