Lemonldap::NG::Common::Util::Crypto - Crypto utilities for LemonLDAP::NG
Contents
Bug Report
Use OW2 system to report bug or ask for features:
<https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/issues>
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/>.
perl v5.40.1 2025-05-01 Lemonldap::NG:...n::Util::Crypto(3pm)
Description
This package contains various cryptography-related functions
Download
Lemonldap::NG is available at <https://lemonldap-ng.org/download>
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
Name
Lemonldap::NG::Common::Util::Crypto - Crypto utilities for LemonLDAP::NG
