- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Hi Steve,
thank you for your answer. I attached the key in the security settings of the reader but it did not help. Maybe I am doing something wrong during the encryption.
My question about the procedure of encrypting was too ambiguous. Sorry for that. I found a code example in the LC documentation that obviously uses a private key to sign a document:
FileInputStream fileInputStreamCert = new FileInputStream("C:\\Adobe\\Encryption.cer");
Document privateKey = new Document (fileInputStreamCert);
recipient.setX509Cert(privateKey);
This document could be read by anyone afterwards. I want to achieve that the document can only be read by one person, therefore I have to provide the public key of that person to this piece of code. Can I put the receipient's public key into the file C:\Adobe\Encryption.cer and expect to get the desired result? Or do I need a different piece of code to do that?
Am I doing the encryption right? I do ...
- export my default certificate (That was installed with windows) to a file (without private key)
- I choose format X509 (.cer) binary
- I copy the file to my Linux machine
- I execute the java program from the example stated above. I tell the program to use the exported windows certificate and my pdf file (dynamic form, no RE)
- I get a new pdf file, which I copy to the windows machine
- I open the pdf file on the windows machine and get the message that no digital ID was found to decrypt it.
I cannot upload the document and certificate
to show it
BTW, I dont know if that makes any difference, but my windows machine is not part of a domain and has no access to an Active Directory server. It is a Windows XP SP3 on a Virtual Box virtual machine.
Thank you very much for your help so far.
Cheers,
Arne
Views
Replies
Total Likes