registry/crypto/helpers.go
Method CryptoRegistry.parsePrivateKeyPEM
has 10 return statements (exceeds 4 allowed). Open
Open
func (ch *CryptoRegistry) parsePrivateKeyPEM(pemBlock string) (crypto.PrivateKey, error) {
block, _ := pem.Decode([]byte(pemBlock))
if block == nil {
return nil, errors.New("no PEM data in input")
}
Method CryptoRegistry.generateSignedCertificateWithKeyInternal
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
cn string,
ips []any,
alternateDNS []any,
daysValid int,
ca Certificate,
Method CryptoRegistry.generateSelfSignedCertificateWithKeyInternal
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
cn string,
ips []any,
alternateDNS []any,
daysValid int,
priv crypto.PrivateKey,
Method CryptoRegistry.generateSignedCertificateWithKeyInternal
has 5 return statements (exceeds 4 allowed). Open
Open
func (ch *CryptoRegistry) generateSignedCertificateWithKeyInternal(
cn string,
ips []any,
alternateDNS []any,
daysValid int,
Method CryptoRegistry.getCertAndKey
has 5 return statements (exceeds 4 allowed). Open
Open
func (ch *CryptoRegistry) getCertAndKey(
template *x509.Certificate,
signeeKey crypto.PrivateKey,
parent *x509.Certificate,
signingKey crypto.PrivateKey,