Giter Club home page Giter Club logo

Comments (5)

dengert avatar dengert commented on September 21, 2024

On 9/12/2013 6:19 AM, sanaullah82 wrote:

I am trying to write pem certificates in softhsm using pkcs11-tool but it feels that, pem based certificate are not supported by pkcs11-tool. pkcs11-tool can only write a DER certificate.

OpenSSL is your friend...

openssl x509 -inform PEM -outform DER < cert.pem > cert.der

openssl pkcs12 -help

Openvpn implementation can only read pem/p12 certificates from any smart card or hsm. I need this to integrate with openvpn? please let me know if there is a way?

Certificates are always stored in DER (ASN.1) on the card. PEM is just a base 64 encoding of the DER.

Regards,
Sanaullah


Reply to this email directly or view it on GitHub #181.

Douglas E. Engert [email protected]
Argonne National Laboratory
9700 South Cass Avenue
Argonne, Illinois 60439
(630) 252-5444

from opensc.

sanaullah82 avatar sanaullah82 commented on September 21, 2024

thanks for the response.

OpenSSL is your friend...
openssl x509 -inform PEM -outform DER < cert.pem > cert.der

I have used the same above commands to write the certs in softhsm and its ok.
but when i try to list the certs using openvpn pkcs11 interface. its unable to list any certs.

I have tested some smart cards, they are working with openvpn. I wrote the pem encoded certificates on smart cards not DER encoded. on the basis of that, I am assuming openvpn which uses pkcs11-helper library to read the certs, may be unable to read Der encoded certificate.

from opensc.

frankmorgner avatar frankmorgner commented on September 21, 2024

OpenVPN seems to accept certificates on cards in binary format, see http://acksyn.org/docs/smart-cards-openvpn.html The link also shows how to configure OpenVPN...

@sanaullah82 has your problem been solved?

from opensc.

frankmorgner avatar frankmorgner commented on September 21, 2024

please reopen if not

from opensc.

sanaullah82 avatar sanaullah82 commented on September 21, 2024

That issue was fixed.

On Fri, Dec 12, 2014 at 2:54 AM, Frank Morgner [email protected]
wrote:

please reopen if not


Reply to this email directly or view it on GitHub
#181 (comment).

from opensc.

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.