login about faq

I would like to ask straight to the point. How do I sign plain text and private key (.pfx) using Algorithm, Encoding and Key Length below. (PKCS #1 SHA-1 Encryption)

> Signature Algorithm: SHA1RSA Hash:
> SHA1 RSAKey Length: 2048 Signature
> encoding:Base64

asked May 09 '15 at 03:35

PHP_RSA's gravatar image


Does this example help? Just change the "hex" encoding to "base64" and I think it will do what you want:

RSA Sign with PFX


answered May 09 '15 at 09:25

jpbro's gravatar image

jpbro ♦

Hi If I am not mistaken the source code is made in VB, is there any out there that made in PHP? thanks

(May 09 '15 at 10:42) PHP_RSA

There are examples for various languages here, including "PHP ActiveX" and "PHP Extension" (not sure which you are using).

(May 09 '15 at 10:48) jpbro ♦

Im using PHP extension, sorry. Im not sure if this is possible since i am new in RSA.

(May 09 '15 at 19:42) PHP_RSA

Did you look through the PHP Extension RSA examples? I think this one will help you, but you'll have to try it/adpat it to your needs:


(May 09 '15 at 20:10) jpbro ♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: May 09 '15 at 03:35

Seen: 1,785 times

Last updated: May 09 '15 at 20:10

powered by OSQA