Submit
Path:
~
/
/
usr
/
local
/
psa
/
admin
/
plib
/
modules
/
letsencrypt
/
vendor
/
acmephp
/
ssl
/
Generator
/
DsaKey
/
File Content:
DsaKeyGenerator.php
<?php /* * This file is part of the Acme PHP project. * * (c) Titouan Galopin <galopintitouan@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PleskLetsEncrypt\AcmePhp\Ssl\Generator\DsaKey; use PleskLetsEncrypt\AcmePhp\Ssl\Generator\KeyOption; use PleskLetsEncrypt\AcmePhp\Ssl\Generator\OpensslPrivateKeyGeneratorTrait; use PleskLetsEncrypt\AcmePhp\Ssl\Generator\PrivateKeyGeneratorInterface; use PleskLetsEncrypt\AcmePhp\Ssl\PrivateKey; use PleskLetsEncrypt\Webmozart\Assert\Assert; /** * Generate random DSA private key using OpenSSL. * * @author Jérémy Derussé <jeremy@derusse.com> */ class DsaKeyGenerator implements PrivateKeyGeneratorInterface { use OpensslPrivateKeyGeneratorTrait; public function generatePrivateKey(KeyOption $keyOption) : PrivateKey { Assert::isInstanceOf($keyOption, DsaKeyOption::class); return $this->generatePrivateKeyFromOpensslOptions(['private_key_type' => \OPENSSL_KEYTYPE_DSA, 'private_key_bits' => $keyOption->getBits()]); } public function supportsKeyOption(KeyOption $keyOption) : bool { return $keyOption instanceof DsaKeyOption; } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
INFO
Name
Size
Permission
Action
DsaKeyGenerator.php
1243 bytes
0644
DsaKeyOption.php
605 bytes
0644
N4ST4R_ID | Naxtarrr