Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu
Showing posts with label Windows-Web-Servers. Show all posts
Showing posts with label Windows-Web-Servers. Show all posts

Sunday, 30 July 2017

How To Configure Password Protected Directory in IIS 7

How To Configure Password Protected Directory in IIS 7


Step: 1. Install IIS on Windows Server 2008/2012 :

-- Go To "Server Management"
-- Click on "Roles"
-- Add Roles
-- Click on "Next".
-- Select Web Server (IIS)
-- Add Required Features.
-- Click on "Next"
-- Click on "Next"
-- Select Windows Authentication, ASP.Net, CGI
-- Click on "Next"
-- Finally, Click on "Install".
-- Close.

Note: If you have already Install IIS then open Server Management and follow these steps.

-- Expand "Roles"
-- Click on "Web Server (IIS)"
-- Scroll Down the Page & Click on Add Role Services
-- Then Select "Windows Authentication"
-- Click on "Next"
-- Finally, Click on "Install"
-- Close.

Step: 2. Configure IIS Server :

Go To C:\inetpub\wwwroot and Create a "index.html" File & also Create a Directory called "Secret" under Secret Directory create a html file called "sectet.html"

index.html code

<html>
<body bgcolor="black">
<h1><center><font size="8" color="white">This is My Home Page...</center></font></h1>
<BR>
<a href="secret/secret.html"><font size="4" color="yellow">secret.html</a></font></BR>
</body>
</html>


-- Save the File.

secret.html code

<html>
<h1><font size="6" color="black">This is My secret Doc...</font></h1>
</html>


-- Save the File.

After created .html files follow these steps.

-- Open IIS Manager.
-- Expand Server Name.
-- Expand Sites
-- Right Click on "Sites"
-- Add Web Site
-- Give Site Name (secret)
-- Select Path (C:\inetpub\wwwroot) Give Hostname (localhost)
-- Click on "OK".

-- Click on Newly created site.
-- Double Click on Default Document.
-- Move Up "index.html".

-- Click on Newly Create site
-- Double Click on Directory Browsing
-- Click on "Enable".

Step: 3. Create A System User :

-- Click on "Start"
-- Administrative Tools
-- Computer Management
-- Expand Local Users & Groups
-- Click on "Users"
-- Right Click on Blank Space.
-- New User.
-- Give Username & Password
-- Click on "Create".
-- Click on "Close".

Step: 4. Security Setup for IIS :

-- Go To C:\inetpub\wwwroot
-- Right Click on Secret Directory
-- Click on Properties.
-- Security (Tab)
-- Click on Advanced
-- Change Permissions.
-- Select Users.
-- Uncheck Include Inheritable Permissions from this object's parent.
-- Click on "Add/Copy"
-- Again Select Users
-- Remove
-- Click on "OK"
-- Again Click on "OK"
-- Click on "Edit" button.
-- Click on "Add"
-- Click on "Advanced"
-- Find Now
-- Select User 'secret'
-- Click on "OK"
-- Click on "OK"
-- Check on "Full Control"
-- Click on "OK"
-- Finally, Click on "OK".

-- After that Go To IIS Manager
-- Expand Server Name.
-- Expand Sites.
-- Right Click on Newly Created Site
-- Double Click on Authentication
-- Right Click on Windows Authentication
-- Click on "Enable"
-- Right Click on Anonymous Authentication
-- Click on "Disabled".

-- Right click on Newly created Site.
-- Edit Permission
-- Security (tab)
-- Click on "Edit"
-- Click on "Add" button.
-- Type 'everyone'
-- Click on "Check Names"
-- Click on "OK"
-- OK
-- Finally, Click on "OK".

Step: 5. Testing through web Browser :


http://Server_ip_address - Page Opening

Click on secrect.html -> It Show Restricted Access.

Give Username & Password.

Thanks For Visiting on My Blog, For More Tutorials Keep Visiting My Blog

 

Sunday, 29 May 2016

How To Import PFX Certificate File In IIS Server

Import PFX Certificate File In IIS


Q. What is PFX File ?

-- Personal Information Exchange Format (PFX) enables transfer of certificates and their private keys from one computer to another or to removable media. The Microsoft Windows CryptoAPI uses the PFX format, also known as PKCS #12. Export the certificate and key file together to PFX format using OpenSSL.

Step: 1. First Go To Start Menu & Click Run or Simply Press Win+R & Type "mmc" & Press OK button.


Step: 2. Microsoft Management Console (MMC) Wizard Will Appear. Click on File Menu & Then click "Add/Remove Snap in".


Step: 3. Select "Certificate" & Click Add.


Step: 4. Select "Computer Account" & Click on Next.


Step: 5. Select "Local Computer" & Click on Finish.


Step: 6. Finally, Click OK.


Step: 7.  Now, Expand "Certificates" & Right Click on "Personal". Then go to "All Tasks" & Click "Import".


Step: 8. Certificate Import Wizard will Appear & Click Next.


Step: 9. Click on "Browse".


Step: 10. Select Certificate Type in Drop down List. Select "All Files" Or You can use "Personal Information Exchange".


 Step: 11. Select Your .pfx File & Click Open.


Step: 12. Click on Next.



Step: 13. Give Exportable Password & Check "Mark this Key as Exportable..." & "Include all Extended properties" & Click Next.


 Step: 14. Select "Automatically select the Certificate store..." & Click Next.


Step: 15. Completing the Certificate Import Wizard by Clicking Finish.



Step: 16. Click OK. Refresh the MMC Panel to view the Newly Imported Certificate.



Step: 17. Now, Go to IIS Management Console & Bind the SSL Certificate.

Thanks For Visiting on My Blog, For More Tutorials Keep Visiting My Blog


Copyright © 2016 Kousik Chatterjee's Blog