Installing certificate on IIS 7 for WCF security - iis-7

I want to install a temporary certificate for my WCF service which installed in an IIS 7 server. How do I do that? is there any tutorial?

You can use a self-signed certificate, see scottgu's blog post for help.

Related

I can host .net core 5 web application on IIS but not web api

I get 404 error when I host .Net Core 5 Web API on IIS.
I can host Web Application with no issues, though.
Any idea why?
What kind of web application runs successfully? Make sure all of the required modules is installed. IIS 7 is pretty old version, make sure all of the required steps are performed.
Microsoft's guide on hosting on IIS
Thank you all for answering/commenting on my question.
I realized that I was using wrong url for testing my api endpoints. So, hosted the web api as a website in IIS, and it worked successfully.

How to configure Shibboleth SP running on NGINX web server on CentOS 7?

I have the Metadata of IDP and already installed Shibboleth on a server system running on CentOS 7. The steps I followed from this link -
http://accc.uic.edu/answer/how-do-i-install-and-configure-shibboleth
which is very straight forward and good to follow. But it's for Apache web server.
The thing is, as per Shibboleth Website
https://wiki.shibboleth.net/confluence/display/SHIB2/NativeSPConfigurationElements
I can't find an official support docs for NGINX webserver. I've checked many repositories on github but kind of hard to understand about the steps of configuration.
https://github.com/nginx-shib/nginx-http-shibboleth
https://github.com/ConsortiumGARR/idem-tutorials/blob/master/idem-community/HOWTO-Shibboleth/Service-Provider/Debian/HOW%20TO%20SETUP%20A%20SHIBBOLETH%20SP%20WITH%20NGINX.md

How to configure Web Deploy publishing feature on IIS so developer can publish?

I control a server running IIS 8 on Windows Server 2012. I want to publish a few basic asp.net websites with the Publish option in Visual Studio 2012. There are no good/current Microsoft articles on the server configuration steps.
1) What exactly do I need to do on the server? I don't see any "web deploy" role option under the various IIS roles. I have read of some people downloading and installing "Web Deploy 3.0" from Microsoft but that file is one year old and it seems strange that I would have to download another file to use a promoted IIS file deployment option. If you are using IIS7 or IIS7.5 instead of IIS8 like me, please feel free to reply what YOU do, but let me know what version you are using.
2) Is the authentication process encrypted? For example, FTP would send passwords in plain text. FTP over SSL doesn't but setting up even a self-issued SSL cert is annoying just to get secure authentication. So what about Web Deploy? Is it safe or no?
3) Must I open port 8172 on the server's firewall? Microsoft's documentation says I "might need to".
4) On the Visual Studio side, it wants an account for authentication. Is this a Windows account on the server? Should I then right click the IIS website folder on the server and add this user there or is there some other preferred way of mapping users to websites? If so, what rights are required?
Please answer any or all of the above but please focus on the server side configuration and not the client (visual studio). Please don't suggest FTP as I am truly wanting to try Web Deploy. I am adding an IIS 7.5 tag too since some of the answers may be the same as for IIS 8.
It appears that one must still download the Web Deploy extension. Also, Version 3.5 is now available.
To download on a server, default IE security rules will require you add something like http://*.microsoft.com as a trusted site else you can't download the installer.
The whole package is rather large in its purpose and covers many deployment/backup/transfer type scenarios for IIS. So, when you install it, it turns into "Web Platform Installer 4.6" and installs roughly 10 prerequisites in addition to Web Deploy 3.5. Those prerequisites covers CLR Types, SQL Server framework (even if you don't have SQL Server installed), SQL Server shared management objects, etc. I did check afterwards if all these items are uninstallable through control panel (in case I changed my mind about web deploy) and they are there.
Finally, to configure web deploy on a site, I found this document:
http://www.iis.net/learn/publish/using-web-deploy/configure-the-web-deployment-handler
To find more information about this, google "web deployment handler".
It also does appear that you can configure secure authentication, which is the main reason I went down this Web Deploy publishing path instead of using plain clear-text FTP. However, http://www.iis.net/learn/publish/using-web-deploy/introduction-to-web-deploy says
Web Deploy is secure. Web Deploy supports transfer over HTTPS. Note that variants of FTP such as SFTP and FTPS are also secure.
I'm not sure if this means I will have to use an SSL certificate anyway. I was hoping Web Deploy provided more authentication options that were both secure and didn't need a certificate.
The answer marked correct pointed me in the right direction to publish a web site from Visual Studio 2013 to Server 2012. The Validate Connection button kept stating check Web Management service is installed.
As of April 2014 these simple steps work:
Install Web Deploy
http://www.iis.net/downloads/microsoft/web-deploy
In Powershell:
(from: https://www.orcsweb.com/blog/jamie-furr/manage-and-install-iis8-on-windows-2012-server-core/)
Install-WindowsFeature Web-Server
Install-WindowsFeature Web-Mgmt-Service
Set-ItemProperty -Path
HKLM:\SOFTWARE\Microsoft\WebManagement\Server -Name
EnableRemoteManagement -Value 1
Net Stop WMSVC
Net Start
WMSVC
netsh advfirewall firewall add rule name=”Allow Web
Management” dir=in action=allow service=”WMSVC”
In IIS:
(from
http://blog.richardszalay.com/2013/02/02/building-a-deployment-pipeline-with-msdeploy-part-4-server-configuration/)
Create a new non-admin user
Once your user is created, we need
to grant it permission to deploy the site. Right click on your
website and select “Configure for Web Deploy Publishing…” from the
“Deploy” sub menu

AppFabric IIS Extensions

I've inherited an application that uses AppFabric hosted on an Win2K8R2 application server. I added the IIS feature to the server and I'm trying to get the IIS UI extensions installed. Can anyone advise on how to do that?
Thanks
Paul
Just install AppFabric on your server (download here)
For IIS Extension, you only need to install Hosting Administration.
Note, if you server is hosting a WCF/WF services, you will also need Hosting Services : without this feature, your service will not use Appfabric event if it's enabled in the config.

Test ASP.NET site locally with SSL on IIS 5.1

I need to test an ASP.NET site that requires SSL locally. I think IIS7 with the self-signing certs would do the trick, however, I am on XP.
Any idea how I could test the site locally over https?
The IIS Resource Kit will help you with this in XP. use the SelfSSL utility to create a self signed cert. http://www.microsoft.com/downloads/details.aspx?FamilyID=56fc92ee-a71a-4c73-b628-ade629c89499&DisplayLang=en
You can use SelfSSL or OpenSSL to create a self-signed certificate. Here are instructions on how to do this.
http://www.somacon.com/p41.php
http://www.dylanbeattie.net/docs/openssl_iis_ssl_howto.html

Resources