Skip to content

Commit 3734953

Browse files
Allow RSA keys as private key for a certificate (#638)
Co-authored-by: Jared Hendrickson <github@jaredhendrickson.com>
1 parent a030b4e commit 3734953

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Models/Certificate.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class Certificate extends Model {
6666
$this->prv = new Base64Field(
6767
required: true,
6868
sensitive: true,
69-
validators: [new X509Validator(allow_prv: true, allow_ecprv: true)],
69+
validators: [new X509Validator(allow_prv: true, allow_ecprv: true, allow_rsa: true)],
7070
help_text: 'The X509 private key string.',
7171
);
7272

0 commit comments

Comments
 (0)