From 006b2c097577d49696aeec6a6d31528f9ecf9e32 Mon Sep 17 00:00:00 2001 From: Fredrik Orderud Date: Fri, 30 May 2025 10:29:37 +0200 Subject: [PATCH] Adjust trusted CA script so that it works without modifications if being called from the same folder as the PFX certificate It becomes easier to follow the instruction steps if they can be copied & run as-is without modifications. --- mdm_server_poc/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mdm_server_poc/README.md b/mdm_server_poc/README.md index efc92ec..178865f 100644 --- a/mdm_server_poc/README.md +++ b/mdm_server_poc/README.md @@ -32,7 +32,7 @@ On the Windows client side, you need to import a custom CA certificate to the ce 1) Import certificate to Trusted CAs repository (be sure to update the path to the pfx certificate) - powershell -ep bypass "$mypwd = ConvertTo-SecureString -String 'testpassword' -Force -AsPlainText ; Import-PfxCertificate -FilePath c:\path\to\dev_cert_pocmdmserver_com.pfx -CertStoreLocation Cert:\LocalMachine\Root -Password $mypwd" + powershell -ep bypass "$mypwd = ConvertTo-SecureString -String 'testpassword' -Force -AsPlainText ; Import-PfxCertificate -FilePath dev_cert_pocmdmserver_com.pfx -CertStoreLocation Cert:\LocalMachine\Root -Password $mypwd" 2) Add pocmdmserver.com to the list of static DNS at %SystemRoot%\System32\drivers\etc\hosts