How do I use snk file to sign data in PHP?

625 Views Asked by At

How to convert the .snk RSA keypair file used to sign the .NET assemblies to XML based files that can be used with PHP or other software?

XML file sample:

<BitStrength>1024</BitStrength><RSAKeyValue><Modulus>tk=</Modulus><Exponent>QB</Exponent></RSAKeyValue>
2

There are 2 best solutions below

0
On BEST ANSWER

You have to convert your snk file to PEM format and use the openssl functions to encrypt.

0
On

That sounds more like you should be using makecert or similar (or a certificate reseller), and exporting that as public/private key file(s)? Strong name keys (snk) are a bit different...