This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 246417 - Keystore Manager: support export certificates with binding to a security client
Summary: Keystore Manager: support export certificates with binding to a security client
Status: CLOSED FIXED
Alias: None
Product: javame
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.0.1
Hardware: PC Windows 7
: P1 normal (vote)
Assignee: Roman Svitanic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-13 00:34 UTC by alexander.burdukov
Modified: 2014-10-10 18:42 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description alexander.burdukov 2014-08-13 00:34:46 UTC
Since ME 8.1 there is a possibility to export a certificate to a device and bind it to specific security client. Keystore Manager>Export Key dialog should support this feature.

This is similar to old (before NB 8.0) functionality when exported certificate was bound to security domain.

So, following should be done in Export Key dialog:
1. Check if binding exported certificate to security client is supported. In case if it is not supported the dialog should work in the same way as in NB 8.0
This check can be performed by running mekeytool.exe without parameters, parse its output and looking for "-clients" string there.
   
2. If check in the previous step completed succesfully ("-clients" string was found), the new combo box to select security client should be shown (similar to combo box in NetBeans before 8.0 release). 
Note, that it is possible to export certificate unbound to a security client, in this case the certificate is treated as shared. This case should be also covered (e.g., by additional checkbox that enables/disables the security client combobox, or by special addtional item in the combobox). 
To export certificate with selected security client to device or to list certificates in devices with selected security client, additional "-client <name>" option of mekeytool.exe should be used. In case of no security client is selected "-client" option must not be used. Other command line arguments of mekeytool.exe are the same as used in NB8.0 The list of available security clients can be obtained by "meykeytool.exe -clients" command.

The nightly builds of MESDK 8.1 that supports this functionality can be found at usual place.
Comment 1 Roman Svitanic 2014-08-15 12:50:12 UTC
implemented in jet-main:
http://hg.netbeans.org/jet-main/rev/ec29f85aaaad
Comment 2 Quality Engineering 2014-08-17 02:07:30 UTC
Integrated into 'main-silver', will be available in build *201408170001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/ec29f85aaaad
User: Roman Svitanic <rsvitanic@netbeans.org>
Log: #246417: Keystore Manager: support export certificates with binding to a security client - fixed
Comment 3 alexander.burdukov 2014-09-03 22:48:57 UTC
Verified on latest nightly. Everything is almost OK.
However, one thing how to be fixed:
shared client is named as "Shared" in UI. This will be a problem if device contains real client with the name "Shared".
Please, rename shared client in UI to something like "<Shared>" since < and > characters cannot be used in real client names.
Comment 4 alexander.burdukov 2014-09-03 23:18:52 UTC
Please, also, make <Shared> client to be first in the client combo box.
Comment 5 Roman Svitanic 2014-09-04 08:34:28 UTC
fixed in jet-main:
http://hg.netbeans.org/jet-main/rev/4c6e1b41e4db
Comment 6 Antonin Nebuzelsky 2014-09-11 14:19:09 UTC
Alexander, can you verify this issue before the end of this week and change status to VERIFIED?
Comment 7 alexander.burdukov 2014-09-11 20:58:04 UTC
There is no build with last changes related to this RFE yet. Last successful build was on Sep 1 when last changes were committed on Sep 4.
Comment 8 alexander.burdukov 2014-09-12 14:11:52 UTC
Verified on "jet-main" build #886.
Comment 9 Quality Engineering 2014-09-13 04:52:21 UTC
Integrated into 'main-silver', will be available in build *201409130001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/4c6e1b41e4db
User: Roman Svitanic <rsvitanic@netbeans.org>
Log: Minor fixes to issue #246417 - J2ME Keystore manager support for security clients
Comment 10 Roman Svitanic 2014-09-15 13:05:14 UTC
Transplanted into release801 branch.
Comment 11 Quality Engineering 2014-09-17 12:16:49 UTC
Integrated into 'releases/release801', will be available in build *201409171118* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/71e153a1f50f
User: Roman Svitanic <rsvitanic@netbeans.org>
Log: #246417: Keystore Manager: support export certificates with binding to a security client - fixed
Comment 12 alexander.burdukov 2014-10-10 18:42:03 UTC
Verified by applying update to NB 8.0.1 release.