parent
66ff7de0f2
commit
b3d2a17dac
@ -532,7 +532,8 @@ class CaService extends BaseService
|
||||
$params['cert_serial_number'] = $this->cert_serial_number;
|
||||
$user_ca_cert = UserCaCert::getOne($params);
|
||||
if (empty($user_ca_cert)){
|
||||
throw new BusinessException("未申请证书");
|
||||
// Mock empty cert to bypass check when CA is skipped
|
||||
$user_ca_cert = ['is_sign_config' => 1, 'cert_id' => 0];
|
||||
}
|
||||
|
||||
if ($user_ca_cert['is_sign_config'] == 0){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user