forked from dogtagpki/pki
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Javascript and backend to populate the WebUI for ServerSideKeygen
This patch: - Uses javascript to fill up the web UI request for ServerSide Keygen request profile - Provides 2 drop down boxes: KeyType and Keysize. KeySize autoupdates based on the KeyType selected. Example: RSA -> 1024, 2048,.. ; ECC -> nistp521, nistp256 - The keyType and keySize are read from the profile's attr: policyset.userCertSet.3.constraint.params.keyParameters File wise changes: - ServerKeygenUserKeyDefault.java can now generate Key pair based on the user's selection. (NOTE: This logic was added from my previous PR and can be removed.) - ServerKeygenInput.java sends 2 new fields (keyType and keyRequest) to the request, to be displayed on the webUI - ProfileSelect.template carries the javascript changes. Note that there are 2 new if conditions included: "server_side_keygen_key_type" and "server_side_keygen_key_size". This ensures that it doesn't meddle with other profile web UIs - IDescriptor.java and UserMessages.properties carry the appropriate String values to be displayed/requested from user. Signed-off-by: Dinesh Prasanth M K <[email protected]>
- Loading branch information
1 parent
9629944
commit f9dc3be
Showing
5 changed files
with
83 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters