Posts

Showing posts from December, 2023

How to remove special NTFS permission from folders and subfolders

How to remove special NTFS permission from folders and subfolders To remove special NTFS (New Technology File System) permissions from a folder and its subfolders in Windows, you can use the icacls command in the Command Prompt with the appropriate parameters. Here is a basic guide: 1. Open Command Prompt as Administrator: Press Win + X and select "Command Prompt (Admin)" or "Windows PowerShell (Admin)" from the menu. 2. Navigate to the Folder: Use the cd command to navigate to the directory where your folder is located. For example: "CD C:\temp" 3. View Current Permissions: Before making any changes, you might want to view the current permissions. You can use the following command: "icacls . /save OriginalPermissions.txt /t" 4. Remove Special Permission: icacls . /remove:g <username>:<permission> /t  expl: icacls . /remove:g sa-rranjan /t 5. Remember to be cautious when modifying permissions, especially if you are dealing...

OpenSSL tool to create a temp SSL certificate

  OpenSSL tool is a freeware to create a temp SSL certificate that can be used internally for web servers\Printers. Url to download the OpenSSL tool. https://slproweb.com/products/Win32OpenSSL.html Once you install the OpenSSL Tool on a Windows machine, then you must also set the below path as a system variable to make the software work.  "Path C:\Program Files\OpenSSL-Win64\bin" Generate Private key openssl genrsa -des3 -out oasispntr25.key 2048 Genrate CSR - Certificate Signing request openssl req -key oasispntr25.key -new -out oasispntr25csr.csr Create certificate  openssl x509 -sha256 -signkey oasispntr25.key -in oasispntr25csr.csr -req -days 365 -out oasispntr25.crt Convert certificate in PFX format. openssl pkcs12 -inkey oasispntr25.key -in oasispntr25.crt -export -out oasispntr25-PFX.pfx CN - Cammon Name(FQDN) is most important while generating the CSR.