Skip to content

Handling of TLS cert formats: "appending provided certificate to pool failed" #253

@scaleoutsean

Description

@scaleoutsean

Go's AppendCertsFromPEM() function returns false when it can't parse any valid PEM-encoded certificates from the provided data.

The error "appending provided certificate to pool failed" comes from certPool.AppendCertsFromPEM(config.TLSCaCert) returning false in grpc.go

The problem may be in poor docs, or the BeeGFS init script's base64 decoding or the certificate format isn't what Go's crypto/x509 library expects.

Yesterday I (again) spent hours trying to figure out TLS, and couldn't. I think there may be a problem in here, or the docs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions