Submit
Path:
~
/
/
usr
/
local
/
psa
/
admin
/
plib
/
modules
/
letsencrypt
/
vendor
/
acmephp
/
ssl
/
Generator
/
EcKey
/
File Content:
EcKeyOption.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\EcKey; use PleskLetsEncrypt\AcmePhp\Ssl\Generator\KeyOption; use PleskLetsEncrypt\Webmozart\Assert\Assert; class EcKeyOption implements KeyOption { /** @var string */ private $curveName; public function __construct(string $curveName = 'secp384r1') { Assert::oneOf($curveName, \openssl_get_curve_names(), 'The given curve %s is not supported. Available curves are: %s'); $this->curveName = $curveName; } public function getCurveName() : string { return $this->curveName; } }
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
EcKeyGenerator.php
1236 bytes
0644
EcKeyOption.php
823 bytes
0644
N4ST4R_ID | Naxtarrr