PHP openssl equivalents for Perl?

Most of the Perl modules, including the common Crypt::OpenSSL::RSA one you found, are simply wrappers around the openssl command.

Most of the Perl modules, including the common Crypt::OpenSSL::RSA one you found, are simply wrappers around the openssl command. So, I would suggest you first consider the data you need and how it would be done on the command-line. There are some great examples and tutorials.

Then, if you want to do this from Perl, you could tweak the example code from Crypt::OpenSSL::RSA or from OpenCA::OpenSSL (another popular module for integrating OpenSSL commands) to include the values and settings you want. Alternatively, there is a Perl script called CA. Pl that's included in every OpenSSL installation: this would also be a good place to take their examples and tweak it to fit your needs.(On my Debian-based server(s) it's installed at /usr/lib/ssl/misc/CA.Pl, but it may vary.

) Good luck!

Thanks for the answer but I am not looking into making or changing an existent one, I am looking for a ready one, I am aware of how to do it from the command line and know how to summon the commands from perl but dealing with all errors (for example wrong installation of openssl, wrong usage of parameters, user input, blocked usage of it to users and so forth) that may appear along will be a pain hence why I am looking forward to find a ready to go one otherwise I might just stick to what I currently have... – Prix Jul 3 '10 at 8:12.

Have a try on OpenCA::OpenSSL ( search.cpan.org/~madwolf/OpenCA-OpenSSL-... ). I think this should do what you need.

Can you post a sample of it doing what is described above because from the docs it does not seem to do it. – Prix Jul 8 '10 at 13:48 Sorry, I have not example code and no time to write you one. But all methods you are using in your php-example are also provided by OpenCA::OpenSSL.

The module ist also still maintained (last update 03 Apr 2010 / Crypt::OpenSSL::CA has last update on 30 Sep 2008). Generate Keypair: genKey(), Generate CertRequest: genReq(), Self-Sign Certificate: genCert() – Erik Jul 8 '10 at 14:15 well the problem is not generating them is the additional information :) which has nothing documented on the PDO nor the docs which I already went thru hence why I didn't picked it up that is why I asked you to point an example of it creating the certs with those additional info because I could not find anything related on it. – Prix Jul 8 '10 at 19:43.

You could try Crypt::OpenSSL::CA, the initial example seems to do more or less what you want. You might need to generate the key pair first by some other means, perhaps via Crypt::OpenSSL::RSA.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions