Lemonldap::NG::Common::Util::Crypto3pm
Crypto utilities for lemonldap::ng
Overview
This package contains various cryptography-related functions
Methods
genCertKey($key_len, $password, $cn)
This method generates a RSA private key and a self-signed certificate, and returns a hashref of
- public: certificate in PEM format, subject is built from given $cn
- private: private key in PEM format, optionnaly encrypted with supplied password
- hash: unique identifier for the key
genEcKey($curve_name)
This method generates an ECDSA key pair and returns a hashref of
- public: public key in PEM format
- private: private key in PEM format
- hash: unique identifier for the key
genRsaKey($key_len, $password)
This method generates a RSA key pair and returns a hashref of
- public: public key in PEM format
- private: private key in PEM format, optionnaly encrypted with supplied password
- hash: unique identifier for the key
Bug report
Use OW2 system to report bug or ask for features: <https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/issues>
Download
Lemonldap::NG is available at <https://lemonldap-ng.org/download>
Copyright and license
See COPYING file for details.
This library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.