| |
ID | STAT-33 |
Title | When using the weboptions function, do not set an empty certificate file name. |
Priority | Mandatory |
Severity level | 4 |
Description | When using the weboptions function, do not empty the CertificateFilename option. |
Rationale | For security reasons, it is discouraged to empty the CertificateFilename property of a weboptions object because that disables certificate validation. |
% During construction
opts = weboptions("CertificateFilename", "");
% Post-construction
opts.CertificateFilename = "";
% During construction
opts = weboptions("CertificateFilename", "MyFile.crtf");
% Post-construction
opts.CertificateFilename = "MyFile.crtf";