Skip to content

Step CA fails to load CA containing RFC822 name constraints #271

@wasabii

Description

@wasabii

Subject of the issue

Step CA fails to load CA containing RFC822 name constraints.

Your environment

  • OS - Linux
  • Version - 0.14.3

Steps to reproduce

Produce a CA certificate using the Name Constraint extension, allowing a RFC822 constraint of @domain.com. Attempt to start Step CA using this CA certificate.

Expected behaviour

Step CA should start properly.

Actual behaviour

x509: failed to parse rfc822Name constraint "@domain.com"
error parsing /home/step/certs/intermediate_ca.crt
github.com/smallstep/cli/crypto/pemutil.Parse
	/home/travis/gopath/pkg/mod/github.com/smallstep/cli@v0.14.2/crypto/pemutil/pem.go:285
github.com/smallstep/cli/crypto/pemutil.Read
	/home/travis/gopath/pkg/mod/github.com/smallstep/cli@v0.14.2/crypto/pemutil/pem.go:319
github.com/smallstep/cli/crypto/pemutil.ReadCertificate
	/home/travis/gopath/pkg/mod/github.com/smallstep/cli@v0.14.2/crypto/pemutil/pem.go:172
github.com/smallstep/certificates/authority.(*Authority).init
	/home/travis/gopath/src/github.com/smallstep/certificates/authority/authority.go:151

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions