GithubHelp home page GithubHelp logo

Comments (6)

jariq avatar jariq commented on May 28, 2024 1

Hello, it is not possible to generate X.509 certificate with a PKCS#11 library alone - you need to use an additional general purpose cryptographic library such as for example BouncyCastle. AFAIK there is no complete sample for certificate generation available but there is a sample for a PKCS#10 certification request generation which might be helpful for you because it demonstrates the integration of Pkcs11Interop and BouncyCastle libraries.

from pkcs11interop.

lkn2993 avatar lkn2993 commented on May 28, 2024

but I'm a little confused
how can bouncy castle integrate with this library, even a little explanation is good.
and the example is incomplete, it doesn't generate any valid certificate :)

from pkcs11interop.

lkn2993 avatar lkn2993 commented on May 28, 2024

let me explain this a little bit.
the bouncycastle example for signing and generating an X509Ver3 certificate is found here:
http://stackoverflow.com/questions/7230330/sign-csr-using-bouncy-castle

Its just the fact that I can't figure out a way to implement this using the pkcs11interop lib.
Thanks for response btw

from pkcs11interop.

jariq avatar jariq commented on May 28, 2024

how can bouncy castle integrate with this library, even a little explanation is good.

Have you examined the code of Pkcs11Interop.PkiUtils project I was linking in my previous comment?

from pkcs11interop.

lkn2993 avatar lkn2993 commented on May 28, 2024

It says "create" not import :)
Everyone knows how to import certificate, but... nobody knows how to create one?

from pkcs11interop.

lkn2993 avatar lkn2993 commented on May 28, 2024

that's fine I will find another way :)

from pkcs11interop.

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.