Git Product home page Git Product logo

Comments (4)

ueno avatar ueno commented on August 23, 2024 1

I would say this is an expected behavior. The trust module recognizes the file format in the following order: the p11-kit persistent file format, DER, and PEM. So if it found the marker ([p11-kit-object-v1]), it treats the entire file as a p11-kit persistent file.

Re warning message: it was turned off by f992eb6. You can still see it when you set P11_KIT_DEBUG=all. We can certainly make trust list more verbose, but it's not trivial because the message comes from the trust module.

from p11-kit.

ametzler avatar ametzler commented on August 23, 2024

ueno commented

I would say this is an expected behavior. The trust module recognizes the file format in the following order: the p11-kit persistent file format, DER, and PEM. So if it found the marker ([p11-kit-object-v1]), it treats the entire file as a p11-kit persistent file.

Afaict this behavior does not match the documentation:

Files in the following formats are supported for loading by the trust policy module:

  • X.509 certificates | X.509 certificates in raw DER format. [...]
  • PEM certificates | X.509 certificates in PEM format. These have a BEGIN CERTIFICATE header. [...]
  • OpenSSL trust certificates | OpenSSL specific certificates in PEM format that contain trust information. These have a BEGIN TRUSTED CERTIFICATE PEM header. [...]

from p11-kit.

ueno avatar ueno commented on August 23, 2024

I know. I meant that it could be only fixed by updating the documentation.

from p11-kit.

ueno avatar ueno commented on August 23, 2024

After a second thought, it is actually possible to fall back to PEM blobs if the file is not parsable as p11-kit persistent format. I have updated the linked PR to cover this.

from p11-kit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.