Skip to content

Commit 7cbd075

Browse files
fix(CertificateAuthority): don't delete intermediate ca when root ca is deleted #873
This behavior no longer matches the behavior of the webConfigurator and should be removed.
1 parent 55d82e1 commit 7cbd075

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,6 @@ class CertificateAuthority extends Model {
144144
$this->del_config("crl/$crl->id");
145145
}
146146

147-
# Delete an intermediate CAs signed by this CA
148-
$ca_q = CertificateAuthority::query(reverse: true, caref: $this->refid->value, id__except: $this->id);
149-
foreach ($ca_q->model_objects as $ca) {
150-
$this->del_config("ca/$ca->id");
151-
}
152-
153147
parent::_delete();
154148
}
155149

0 commit comments

Comments
 (0)