TƯƠNG THÍCH WINDOWS HỆ CŨ
Hướng dẫn quyết định và hiện đại hóa CSP/CAPI
CSP/CAPI là hợp đồng hệ cũ riêng biệt. KSP hiện đại không thể được xem là thay thế trong suốt nếu chưa kiểm thử ứng dụng và provider type tương ứng.
01
Ma trận quyết định
| Application behavior | Recommended path | Public status |
|---|---|---|
| Uses NCrypt/CNG | Use CNG/KSP profile | Controlled Pilot |
| Uses CryptAcquireContext/CryptSignHash | Assess CSP/CAPI bridge | Compatibility profile only |
| Configurable provider interface | Migrate to CNG/KSP | Preferred |
| Vendor application with fixed CSP | Vendor-specific test or modernization | No generic support claim |
| Requires unsupported legacy algorithm | Modernize application/profile | Not supported by default |
02
Kiểm kê API hệ cũ
| Area | Representative APIs | Evidence required |
|---|---|---|
| Context/container | CryptAcquireContext, CryptReleaseContext | Provider type, container naming and flags |
| Key lifecycle | CryptGenKey, CryptGetUserKey, CryptDestroyKey | Key type, export policy and deletion |
| Hash/sign | CryptCreateHash, CryptHashData, CryptSignHash | Hash/signature encoding and verifier |
| Certificate store | CertOpenStore, CryptAcquireCertificatePrivateKey | Certificate/private-key association |
| Errors | GetLastError / NTE_* | Error mapping and retry policy |
03
Hướng dẫn chuyển đổi
- Inventory the application API calls and provider type.
- Confirm whether the vendor supports CNG/KSP.
- Map containers and certificates to the modern key model.
- Run dual-path signature and rollback tests.
- Retire CSP only after all consuming applications are migrated.
