Skip to content

Commit d940dcd

Browse files
fix: do not require CertificateAuthority's prv field #605
1 parent eba6105 commit d940dcd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ class CertificateAuthority extends Model {
6363
help_text: 'The X509 certificate string.',
6464
);
6565
$this->prv = new Base64Field(
66-
required: true,
66+
default: null,
67+
allow_null: true,
6768
sensitive: true,
6869
validators: [new X509Validator(allow_prv: true, allow_ecprv: true)],
6970
help_text: 'The X509 private key string.',

0 commit comments

Comments
 (0)