Hi,
Can I do the certificate encryption of a document after signing it?
below, I tried to do both but signature has been applied but it opening
the document anywhere whithout certificate installation.
*
Signature code:-
*ExternalSignature es = new PrivateKeySignature(pk, "SHA-256", "BC");
ExternalDigest digest = new BouncyCastleDigest();
MakeSignature.signDetached(appearance, digest, es, chain, null,
null, null, 0, MakeSignature.CryptoStandard.CMS);
*Cert Encryption*:-
stamper.setEncryption(new Certificate[]{pcert}, new
int[]{PdfWriter.ALLOW_PRINTING,PdfWriter.ALLOW_COPY},
PdfWriter.ENCRYPTION_AES_256);
On Mon, Oct 21, 2013 at 6:00 PM, iText Info <i...@1t3xt.info> wrote:
> Op 21/10/2013 13:50, Bapuji Nakka schreef:
> > How the user decrypt with his private key? without having any utility
> > to do this job?
>
> His private key will have to be known by his PDF Viewer. For instance:
> on Windows, one can register his private key on the OS level and Adobe
> Reader can use that registered key to decrypt the document.
>
>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
> from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> iText(R) is a registered trademark of 1T3XT BVBA.
> Many questions posted to this list can (and will) be answered with a
> reference to the iText book: http://www.itextpdf.com/book/
> Please check the keywords list before you ask for examples:
> http://itextpdf.com/themes/keywords.php
>
--
Regards,
Bapuji.Nakka | Scientific Officer
NIC | New Delhi | INDIA
Contact : 011 24101764 Ext : 614
Mobile : +91 9650 814813
Email : bapuji.na...@yahoo.co.in
------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php