Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

[MBS] pdf signature (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: Re: [MBS] pictureMBS.Scale
Next thread: [MBS] Xojo Developer Meeting for Stockholm


Re: [MBS] AuthorizationMBS   -   Garth Hjelte
  [MBS] pdf signature   -   Frael
   Re: [MBS] pdf signature   -   Frael
   Re: [MBS] pdf signature   -   Christian Schmitz
    Re: [MBS] pdf signature   -   Oliver Osswald
     Re: [MBS] pdf signature   -   Christian Schmitz
      Re: [MBS] pdf signature   -   Oliver Osswald
   Re: [MBS] pdf signature   -   Frael
    Re: [MBS] pdf signature   -   Christian Schmitz
   Re: [MBS] pdf signature   -   Christian Schmitz

[MBS] pdf signature
Date: 05.01.18 12:30 (Fri, 5 Jan 2018 12:30:34 +0100)
From: Frael
Hi all, is there a method/plugin to sign a pdf ?

We are using a Comodo s/mime certificate to sign the document (2048 bits key)

MBS CloseAndSignFileEx can't handle 2048 bits certificates

Thx

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] pdf signature
Date: 08.01.18 17:45 (Mon, 8 Jan 2018 17:45:36 +0100)
From: Frael
Ok thanks it works, but with a pdf created in memory.

My pdf file is a real file, how to sign it ?

I tried pdf.OpenImportFile to fill the memory, but pdf.HaveOpenDoc gives false : which method should I use ?

Frael

> Le 5 janv. 2018 à 14:38, Christian Schmitz <<email address removed>> a écrit :
>
>
>> MBS CloseAndSignFileEx can't handle 2048 bits certificates
>
> I wrote some sample code:
>
> http://www.mbs-plugins.de/archive/2018-01-05/Sign_PDF_with_DynaPDF_and_your/monkeybreadsoftware_blog_xojo
>
> Sincerely
> Christian
>
> --
> Read our blog about news on our plugins:
>
> http://www.mbsplugins.de/
>
>
> _______________________________________________
> Mbsplugins_monkeybreadsoftware.info mailing list
> <email address removed>
> https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] pdf signature
Date: 05.01.18 14:38 (Fri, 5 Jan 2018 14:38:21 +0100)
From: Christian Schmitz

> MBS CloseAndSignFileEx can't handle 2048 bits certificates

I wrote some sample code:

http://www.mbs-plugins.de/archive/2018-01-05/Sign_PDF_with_DynaPDF_and_your/monkeybreadsoftware_blog_xojo

Sincerely
Christian

Re: [MBS] pdf signature
Date: 10.01.18 15:29 (Wed, 10 Jan 2018 15:29:13 +0100)
From: Oliver Osswald
Sorry, just now seeing this thread. I already commented on the blog…

I’m getting an error when trying to reproduce the sample code from the blog.
Is it possible, that .PKCS7SignData function is not available in the latest MBSXojoEncryption plugin?

Screenshot:
https://osswald.com/xojo/mbs/mysign.jpg <https://osswald.com/xojo/mbs/mysign.jpg>

> On 5 Jan 2018, at 14:38, Christian Schmitz <<email address removed>> wrote:
>>
>
> I wrote some sample code:
>
> http://www.mbs-plugins.de/archive/2018-01-05/Sign_PDF_with_DynaPDF_and_your/monkeybreadsoftware_blog_xojo

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] pdf signature
Date: 10.01.18 15:36 (Wed, 10 Jan 2018 15:36:47 +0100)
From: Christian Schmitz

> Am 10.01.2018 um 15:29 schrieb Oliver Osswald <<email address removed>>:
>
> Sorry, just now seeing this thread. I already commented on the blog…
>
> I’m getting an error when trying to reproduce the sample code from the blog.
> Is it possible, that .PKCS7SignData function is not available in the latest MBSXojoEncryption plugin?

yes. Coming in next version.

Sincerely
Christian

Re: [MBS] pdf signature
Date: 10.01.18 15:38 (Wed, 10 Jan 2018 15:38:11 +0100)
From: Oliver Osswald
Great, thanks!

> On 10 Jan 2018, at 15:36, Christian Schmitz <<email address removed>> wrote:
>
>
>> Am 10.01.2018 um 15:29 schrieb Oliver Osswald <<email address removed>>:
>>
>> Sorry, just now seeing this thread. I already commented on the blog…
>>
>> I’m getting an error when trying to reproduce the sample code from the blog.
>> Is it possible, that .PKCS7SignData function is not available in the latest MBSXojoEncryption plugin?
>
> yes. Coming in next version.
>
> Sincerely
> Christian
>
> --
> Read our blog about news on our plugins:
>
> http://www.mbsplugins.de/
>
>
> _______________________________________________
> Mbsplugins_monkeybreadsoftware.info mailing list
> <email address removed>
> https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] pdf signature
Date: 05.01.18 12:51 (Fri, 5 Jan 2018 12:51:31 +0100)
From: Frael
ok, but where to find 1024 bits certificates ?

do you have an address?

> Le 5 janv. 2018 à 12:42, Christian Schmitz <<email address removed>> a écrit :
>
>
>> Am 05.01.2018 um 12:30 schrieb Frael <<email address removed>>:
>>
>> Hi all, is there a method/plugin to sign a pdf ?
>>
>> We are using a Comodo s/mime certificate to sign the document (2048 bits key)
>>
>> MBS CloseAndSignFileEx can't handle 2048 bits certificates
>
> Please use 1024 bits certificate until DynaPDF supports longer bit levels.
>
> Sincerely
> Christian
>
> --
> Read our blog about news on our plugins:
>
> http://www.mbsplugins.de/
>
>
> _______________________________________________
> Mbsplugins_monkeybreadsoftware.info mailing list
> <email address removed>
> https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] pdf signature
Date: 05.01.18 13:07 (Fri, 5 Jan 2018 13:07:01 +0100)
From: Christian Schmitz

> Am 05.01.2018 um 12:51 schrieb Frael <<email address removed>>:
>
> ok, but where to find 1024 bits certificates ?
>
> do you have an address?

Who gave you the 2048bit one?
Maybe they can help.

Otherwise Jens told me you can sign yourself with CloseAndSignFileExt function.
You would get the hash, sign it yourself.

I may be do some example code for you.

Sincerely
Christian

Re: [MBS] pdf signature
Date: 05.01.18 12:42 (Fri, 5 Jan 2018 12:42:10 +0100)
From: Christian Schmitz

> Am 05.01.2018 um 12:30 schrieb Frael <<email address removed>>:
>
> Hi all, is there a method/plugin to sign a pdf ?
>
> We are using a Comodo s/mime certificate to sign the document (2048 bits key)
>
> MBS CloseAndSignFileEx can't handle 2048 bits certificates

Please use 1024 bits certificate until DynaPDF supports longer bit levels.

Sincerely
Christian