Monday, May 20, 2024
34
rated 0 times [  38] [ 4]  / answers: 1 / hits: 15603  / 9 Years ago, thu, november 12, 2015, 12:00:00

So I'm stuck with this problem:



IE Edge no longer allow applets, activeX, etc. ,



and I have this applet that is used for digital signature,



the idea is to extract the private key from the KEY file in the client side, in that way the private key never leaves the client's computer, that is a requirement for security, it can't be avoid :(



I'm looking for APIs or frameworks, but I can't found a way to solve this,



with jsrsasign the examples uses a PEM file but my users have .CER + .KEY + password, in java I can do it, but I need to do it in javascript or in something on the client side.



and, reading the Web Cryptography API and some examples I found, they generate NEW private and public keys to sign BUT they never READ an existing CERTIFICATE



does anybody have this problem or know a framework I could use?
please heeeelp!


More From » internet-explorer

 Answers
5

So the answer was to use JSRSASIGN (http://kjur.github.io/jsrsasign/) in the examples posted in github it uses PEM files, I build an example to use CER+ KEY + PASSWORD >> https://github.com/alfredomova/firmaJs-with-jsrsasign-example,



for that specific example i used sparkMD5(https://github.com/satazor/SparkMD5) to calculate the file's hash.


[#64418] Tuesday, November 10, 2015, 9 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
keric

Total Points: 572
Total Questions: 93
Total Answers: 97

Location: Cyprus
Member since Mon, Oct 24, 2022
2 Years ago
;