Skip to content

Commit fdc36d0

Browse files
fix: don't require certs to be server type to set active
1 parent aa40a2c commit fdc36d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pfSense-pkg-API/files/etc/inc/api/models/APISystemCertificateCreate.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class APISystemCertificateCreate extends APIModel {
3838
$this->set_config("cert/{$this->id}", $this->validated_data);
3939

4040
# If user requests this cert to be active, configure it as the wc cert
41-
if ($this->initial_data["active"] === true and $this->validated_data["type"] === "server") {
41+
if ($this->initial_data["active"] === true) {
4242
$this->set_config("system/webgui/ssl-certref", $this->validated_data["refid"]);
4343
}
4444

0 commit comments

Comments
 (0)