views:

323

answers:

2

I'm looking to port a small Java security library to PHP. The Java implementation makes use of a keystore for signing some stuff and I'm wondering how to go about recreating this functionality in PHP. Of course the original Java implementation must still work with the same key pair/keystore.

I have very little experience with PHP and havn't tried to do anything portable with Java keystores before.

I expect there is some way to export the private key to a format that can be used by PHP.

Does anyone know exactly what I need to do in this situation?

A: 

If you aren't absolutely set on porting your code to php, you can use the php-java to make calls to it from php. If your java code is proven, there's no reason to discard it out of hand.

Dana the Sane
A: 

http://phpkeystore.org/ may be of use.

kguest