Giter VIP home page Giter VIP logo

Comments (1)

kaikramer avatar kaikramer commented on September 3, 2024

Hi, I really don't have much free time, but I can give you some (hopefully) helpful hints:

First of all, take a look at this class: kse/src/org/kse/crypto/x509/X509Ext.java

There the whole extension parsing is done. You can see there how all the values from a wide variety of common extensions are extracted.

Compare the code with lower part of the extension viewer to see the result:

grafik

The following class might also be useful, it updates AKI/SKI extensions: kse/src/org/kse/crypto/x509/X509ExtensionSetUpdater.java

For generating extensions, you can just use the Bouncy Castle classes from the package org.bouncycastle.asn1.x509. In KSE this is done in the classes of this package: kse/src/org/kse/gui/dialogs/extensions

The extension templates in KSE are just the DER encoded extensions, there is nothing special about them.

I don't know how much knowledge you have in this area, but you should have at least a basic understanding of ASN.1, otherwise the code might be too cryptic. Here is a good introduction and reference: https://luca.ntop.org/Teaching/Appunti/asn1.html

Remember that you can copy classes from KSE and modify them as you need (you just have to keep the copyright notice intact).

If you have further questions, you can ask them here, but I cannot promise to answer them.

Good luck!

from controller.

Related Issues (1)

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.