Problem with SSL Certificate and 443 Port

Luis Miguel Perez Lopez 30 Reputation points
2023-08-04T18:10:40.5733333+00:00

I have a WCF Service in an Azure Virtual Machine, but it doesn't work, and I guess is because SSL certificate, beceause before I was working without ssl certificate ( type http service) and it was working properly.... I tried to use an ssl certificate that is in IIS by default but none of them works....

User's image

Do I need to buy an ssl certificate in order to work my WCF service under SSL encription (type https) ???

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,789 questions
Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,482 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,451 questions
{count} votes

4 answers

Sort by: Most helpful
  1. QiYou-MSFT 4,321 Reputation points Microsoft Vendor
    2023-08-09T08:31:43.2033333+00:00

    Hi @Luis Miguel Perez Lopez

    I have two methods for you to use here:

    1.Open Internet Information Services (IIS) Manager

    URL1

    URL2

    URL3

    2.Modify the web.config file directly

    <system.webServer>
    		<rewrite>
    			<rules>
    				<rule name="test" stopProcessing="true">
    					<match url="(.*)"/>
    					<action type="Redirect" url="https://www.lasletrasdelrock.com:8880/View/Index.aspx"/>
    					<conditions>
    
    					</conditions>
    
    				</rule>
    			</rules>
    		</rewrite>
    	</system.webServer>
    
    
    

    url4

    Tips: Since I did not focus on the study of regular expressions in order to show the method. Here my regular expression (.*) means that all URLs entered comply with this rule, and you need to check the relevant documentation of the regular expression for further settings.

    Best regards,
    Qi You


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. AgaveJoe 1,495 Reputation points
    2023-08-11T13:19:07.99+00:00

    The configuration I suggested and the configuration QiYou-MSFT recommended work perfectly.

    Unfortunately, you are not providing enough information for the community to figure out what's wrong with your configuration.

    I can't work with 80 and 443 ports.

    Is there any way you can explain why you can't work with port 443? I'm asking because https://www.lasletrasdelrock.com is bound to 443 by default. Is there a binding for port 443? Why is the Web Forms application bound to port 8880? What are the bindings for the WCF application?

    Can you share a screenshot of the site bindings?

    0 comments No comments

  3. Luis Miguel Perez Lopez 30 Reputation points
    2023-08-11T17:32:16.5966667+00:00

    Here you go:

    User's image

    User's image

    https://www.lasletrasdelrock.com:8880/View/Index.aspx => it works now

    https://www.lasletrasdelrock.com/ => It doesn't work now (page can't be reached)

    If I put the code in the web.config of my project

    		<rewrite>
    			<rules>
    				<rule name="test" stopProcessing="true">
    					<match url="(.*)"/>
    					<action type="Redirect" url="https://www.lasletrasdelrock.com:8880/View/Index.aspx"/>
    					<conditions>
    
    					</conditions>
    
    				</rule>
    			</rules>
    		</rewrite>
    

    Both url's doesn't work :( ... even trying in the virtual machine where the app is located. I'm using the ports 8880 and 4443 because I couldn't work with the ports 80 and 443, these ports are already used by another applications in my virtual machine is there a problem with the ports 8880 and 4443 ?? now they are working properly....


  4. Luis Miguel Perez Lopez 30 Reputation points
    2023-09-17T21:48:45.37+00:00

    One question, is there a way to solve this problem without using IIS, I mean, just using

    Networking page and Network Security Groups and setting up Inbound Rules in Azure portal ???

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.