Posts mit dem Label IIS werden angezeigt. Alle Posts anzeigen
Posts mit dem Label IIS werden angezeigt. Alle Posts anzeigen

Montag, 7. September 2015

SSL Certificates CSR Creation :: IIS 8 and IIS 8.5

IIS 8 and IIS 8.5 SSL Certificate CSR Creation

If you already have your SSL Certificate and just need to install it, see IIS 8 and IIS 8.5 SSL Certificate Installation.
How to create a CSR on Windows Server 2012 - IIS 8 and Windows Server 2012 R2 - IIS 8.5
You can use the to create your CSR and to automatically install the certificate on any Windows server.
  1. From the Start screen, click or search for Internet Information Services (IIS) Manager and open it.
  2. Click on the server name.
  3. From the center menu, double-click the "Server Certificates" button in the "IIS" section (it is in the middle of the menu).
    IIS 8 Security Certificates
  4. Next, from the "Actions" menu (on the right), click on "Create Certificate Request..." This will open the Request Certificate wizard.
    IIS 8 Create Certificate Request
  5. In the "Distinguished Name Properties" window, enter the information as follows:
    Common Name - The name through which the certificate will be accessed (usually the fully-qualified domain name, e.g., www.domain.com or mail.domain.com).
    Organization - The legally registered name of your organization/company.
    Organizational unit - The name of your department within the organization (frequently this entry will be listed as "IT," "Web Security," or is simply left blank).
    City/locality - The city in which your organization is located.
    State/province - The state in which your organization is located.
    Country/region - If needed, you can find your two-digit country code in our list.
    IIS 8 Distinguished Name Properties
  6. Click Next.
  7. In the "Cryptographic Service Provider Properties" window, enter the following information and then, click Next:
    Cryptographic service provider - In the drop-down list, select Microsoft RSA SChannel..., unless you have a specific cryptographic provider.
    Bit length - In the drop-down list, select 2048 (or higher).
    IIS 8 Cryptographic Service Provider Properties
  8. Click the ... box to browse to a location where you want to save the CSR file. If you just enter a filename without browsing to a location, your CSR will end up in C:\Windows\System32.
    Remember the filename that you choose and the location to which you save it. You will need to open this file as a text file and copy the entire body of it (including the Begin and End Certificate Request tags) into the online order process when prompted.
    IIS 8 CSR Pending Request Filename
  9. After you receive your SSL Certificate, you can install it.
After DigiCert issues your SSL Certificate, you will first need to install it to the server from which the certificate request was generated. Instructions for:
How to install and configure your SSL Certificate on Windows Server 2012 - IIS 8 and Windows Server 2012 R2 – IIS 8.5 (Single Certificate)
  1. Open the ZIP file containing your certificate. Save the file named your_domain_name.cer to the desktop of the web server you are securing.
  2. From the Start screen, click or search for Internet Information Services (IIS) Manager and open it.
  3. Click on the server name.
  4. From the center menu, double-click the "Server Certificates" button in the "IIS" section (it is in the middle of the menu).
  5. From the "Actions" menu (on the right), click on "Complete Certificate Request..." This will open the Complete Certificate Request wizard.
  6. Browse to your_domain_name.cer file that was provided to you by DigiCert. You will then be required to enter a friendly name. The friendly name is not part of the certificate itself, but is used by the server administrator to easily distinguish the certificate. Choose to place the new certificate in thePersonal certificate store.
  7. Clicking "OK" will install the certificate to the server.
  8. Once the SSL Certificate has been successfully installed to the server, you will need to assign that certificate to the appropriate website using IIS.
  9. From the "Connections" menu in the main Internet Information Services (IIS) Manager window, select the name of the server to which the certificate was installed.
  10. Under "Sites," select the site to be secured with SSL.
  11. From the "Actions" menu (on the right), click on "Bindings..." This will open the "Site Bindings" window.
  12. In the "Site Bindings" window, click "Add..." This will open the "Add Site Binding" window.
  13. Under "Type" choose https. The IP address should be the IP address of the site or All Unassigned, and the port over which traffic will be secured by SSL is usually 443. The "SSL Certificate" field should specify the certificate that was installed in step 7.
  14. Click "OK."
  15. Your SSL certificate is now installed, and the website configured to accept secure connections.
To enable your SSL certificate for use on other Windows servers, see our PFX export instructions for help.
How to install and configure your SSL Certificate on Windows Server 2012 - IIS 8 and Windows Server 2012 R2 - IIS 8.5 (Multiple Certificates Using SNI)
  1. Open the ZIP file containing your certificate. Save the file named your_domain_name.cer to the desktop of the web server you are securing.
  2. From the Start screen, click or search for Internet Information Services (IIS) Manager and open it.
  3. Click on the server name.
  4. From the center menu, double-click the "Server Certificates" button in the "IIS" section (it is in the middle of the menu).
  5. From the "Actions" menu (on the right), click on "Complete Certificate Request..." This will open the Complete Certificate Request wizard.
  6. Browse to your_domain_name.cer file that was provided to you by DigiCert. You will then be required to enter a friendly name. The friendly name is not part of the certificate itself, but is used by the server administrator to easily distinguish the certificate. Choose to place the new certificate in the Web Hosting certificate store.
  7. Clicking "OK" will install the certificate to the server.
    Note: There is a known issue in IIS 8 giving the following error: "Failed to remove the certificate" If this is the same server that you generated the CSR on then, in most cases, the certificate is actually installed. Simply cancel the dialog and press "F5" to refresh the list of server certificates. If the new certificate is now in the list, then it did install to the server, but you may want to check and make sure the certificate is in the Web Hosting certificate store. If not, you can move it there (see our How to Move Certificate to Another Certificate Store instructions) If it is not in the list, you will need to reissue your certificate using a new CSR (see our CSR creation instructions for IIS 8). After creating a new CSR, login to your DigiCert account and click the re-key button for your certificate.
  8. Once the SSL Certificate has been successfully installed to the server, you will need to assign that certificate to the appropriate website using IIS.
  9. From the "Connections" menu in the main Internet Information Services (IIS) Manager window, select the name of the server to which the certificate was installed.
  10. Under "Sites," select the site to be secured with SSL.
  11. From the "Actions" menu (on the right), click on "Bindings..." This will open the "Site Bindings" window.
  12. In the "Site Bindings" window, click "Add..." This will open the "Add Site Binding" window.
  13. Under "Type" choose https. The IP address should be the IP address of the site or All Unassigned, and the port over which traffic will be secured by SSL is usually 443. The "SSL Certificate" field should specify the certificate that was installed in step 7.
  14. Click "OK."
  15. Your first SSL certificate is now installed, and the website configured to accept secure connections.
  16. Repeat the steps for creating a CSR for your 2nd+ site.
  17. Install the certificate file as mentioned above, up through step 12.
  18. Under "Type" choose https. The IP address should be the IP address of the site or All Unassigned, and the port over which traffic will be secured by SSL is usually 443. Enter the host name you will be securing and check the box that says Require Server Name Indication. This is required for all additionalsites (not required on the primary site as shown in step 13) The "SSL Certificate" field should specify the certificate that was installed in step 7 for your additional certificate.
  19. Click "OK."
  20. Your second SSL certificate is now installed, and the website configured to accept secure connections.
  21. Repeat steps sixteen through nineteen to set up any other additional sites.

Mittwoch, 17. August 2011

Folder C:\InetPub\LogFiles are filling up the C drive


The C drive of your Small Business Server 2008 or 2011 is filling rapidly and when you look with a disk analyzer tool like treesize or windirstat you see that the folder C:\inetpub\logs\LogFiles\W3SVC and a 9 or 10 digit number is several or even dozens of GB. When you open one of the logfiles you see only lines with “POST /ApiRemoting30/WebService.asmx – 8530” in it.
The log file directory belongs to the WSUS Administration IIS website, this is using port 8530. But it is not WSUS that is filling these logfiles rapidly but they are filled if you let the SBS console open. Beside closing the SBS console when not needed, there are 2 option to keep the log files under control.
Option 1:
Open Administrative Tools – Internet Information Services (IIS) Manager, browse through Sites and select the WSUS Administration site and open Logging.
You have 2 options, first you can set the “maximum file size (in bytes):” option under Log file rollover to limit the maximum log file size.
Second option is to completely disable logging, by choosing “Disable” on the Actions menu on the right.
Make sure after you changed anything choose Apply on the upper right and do a iisreset.
Option 2:
The another way for controlling these logfiles is, in SBS 2011 there is by default a scheduled task configured that cleans the logfiles older than 100 days. The same task is added to SBS 2008 by installing Update Rollup 5 (KB2458094) only the default setting with this task is to delete the logfile older than 30 days.
You can change the number of days by opening Administrative Tools, Task Scheduler, go to Microsoft, Windows, Windows Small Business Server 2011 Standard, right click the WSUSLogCleaner task and choose properties. Go to the tab Actions and choose Edit…
The value given by Add arguments (optional) is the value for the number of days the logfiles will be kept. So if your logfile directory is stil really big you can decrease the number of days to something more manageable like 30 days or if this is still to much to something like 14 days.
Conclusion:
The grown of the logfiles is caused by not closing the SBS console. My logfiles have shrunken to 20% of the original size with the console open whole day. There are 2 options to control the growth of these logfiles, IIS to disable logging or maximize the logfile size or the task added in sbs 2008 rollup 5 or sbs 2011 to control the maximum number of days logfiles are kept.

Rename Onedrive Business root folder

Rename Onedrive Business root folder Here is what I remember: In the Office 365 web admin pages, change the organization name to a shorte...