Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please provide a compiled v1.6.1 version #35

Open
gdmeunier opened this issue Aug 12, 2024 · 1 comment
Open

Please provide a compiled v1.6.1 version #35

gdmeunier opened this issue Aug 12, 2024 · 1 comment

Comments

@gdmeunier
Copy link

Hello,
I want to ask you if you can provide us with the compiled version of the v1 branch for newer Javacards (a v1.6.1 version).

Your latest v0.6.1 release says it's the older v0 branch with these restrictions:

no extended APDUs
private key import not allowed
PUK must be set (length: 16)

I say restrictions because I wanted to be able to import private keys and not need to set a PUK (I prefer unblocking with 3DES + Admin Key).

I tried compiling this Javacard project with ant-javacard & the JCKit but everytime it failed with missing smartcard.crypto packages, I didn't find any way to 'add package' in JCIDE (part of JCKit).

So if you could support the following it would be awesome:

  • version v1.6.1 for Javacard 3.0.4
  • private key import allowed
  • extended APDUs supported if available on-card(?)
  • PUK optional

I hope you can help out for releasing compiled .cap files (I prefer the unstripped ones, just generated as-is then released).

Thanks!

@martinpaljak
Copy link
Contributor

  • clone with submodules the right branch

    git clone --recursive -b isoapplet-v1 https://github.com/philipWendland/IsoApplet
    
  • make sure a proper jdk is used (11 is good)

    export JAVA_HOME=/Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home
    
  • apply a small patch to build.xml (change targetsdk to "3.0.4") and do any other changes you need

@@ -8,7 +8,7 @@
     <target name="dist" description="generate the distribution">
         <tstamp/>
         <javacard jckit="ext/sdks/jc310r20210706_kit">
-            <cap targetsdk="ext/sdks/jc304_kit" aid="f2:76:a2:88:bc:fb:a6:9d:34:f3:10" output="IsoApplet.cap" sources="src" version="1.0">
+            <cap targetsdk="3.0.4" aid="f2:76:a2:88:bc:fb:a6:9d:34:f3:10" output="IsoApplet.cap" sources="src" version="1.0">
                 <applet class="xyz.wendland.javacard.pki.isoapplet.IsoApplet" aid="f2:76:a2:88:bc:fb:a6:9d:34:f3:10:01"/>
             </cap>
         </javacard>
  • run ant

      [cap] CAP saved to /Users/martin/tmp/IsoApplet/IsoApplet.cap
    

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants