Start to implement devices enrollment
This commit is contained in:
@ -12,7 +12,7 @@ pub async fn serve_pki_file(path: web::Path<ServeCRLPath>) -> HttpResult {
|
||||
for f in std::fs::read_dir(AppConfig::get().pki_path())? {
|
||||
let f = f?;
|
||||
let file_name = f.file_name().to_string_lossy().to_string();
|
||||
if !file_name.ends_with(".crl") && !file_name.ends_with(".pem") {
|
||||
if !file_name.ends_with(".crl") && !file_name.ends_with(".crt") {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user