Question

Configuring Citrix Secure Gateway / Web Interface for Inside and Outside Users on PS4

Asked by: tech2010

Hi

I am struggling more than a month now to get Citrix Secure Gateway/Web Interface working for internet users over the secure channel.

In order to achieve this I have done following things up till now:

1) Installed a machine in DMZ and configured pix firewall accorindgly to allow 1494,80,443,2598 ports.

2) Installed Citrix Web Interface on this server

3) Installed Microsoft Certificate Service (CA) on this server, and generated a server certificate, Issued certificate to FQDN of that server, downloaded certificate chain (.p7b) and imported/installed that certificate into that machine on defatult IIS website on port 444

Note: I am using Microsoft Certificate Service on that server to issue the certificate not third part e.g verisign.

4) I then tested successfully https://FQDN:444 to make sure that the certificate security alert comes up and i can still access published application on LAN.

Now up till here from step 1 to 4 all is ok, after this point the problem start:

5) Installed Citrix Secure gateway on the same machine.

6) Provided the same FQDN server name (as shows on the certificate) in configuring secure gateway for its URL using port 443

7) Selected "Gateway Direct" for access method in the secure gateway.

Now all configuration has completed here.

So i tried to do a test on my LAN, so i went to one of my client machine and tried to access secure gateway via https://FQDN and i logged in successfully and it shows all my published applications as well but when i access any of my published application i get the following error message:

"SSL Error 61: You have not chosen to trust "FQDN name on my secure gateway", the issuer of the server's security certificate."

Please tell me where i am doing things wrong as i am sick and tired now to try to fix this for more than a month now but i want to resolve this issue at any cost.

I also installed certificate on my STA server as well and on client machine as well but no joy! please let me get out of here. Furthermore, i have also followed following two links

http://www.msterminalservices.org/articles/Install-Configure-Citrix-Web-Interface-Secure-Gateway-Part1.html
http://www.msterminalservices.org/articles/Install-Configure-Citrix-Web-Interface-Secure-Gateway-Part2.html

Your help me much appriciated.

Thanks in advance

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-03-27 at 04:02:08ID24270586
Topics

Citrix

,

Secure Socket Layer (SSL) & HTTPS

,

Microsoft IIS Web Server

Participating Experts
3
Points
500
Comments
52

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Pix not allowing Citrix
    I am in our Cisco Pix device manager right now trying to add our citrix server for outsiders to access it. I enabled the citrix related ports ( 80, 443, 1494 and 2598). When I try to access the server using the ssl protocol through the web, I get luck. If I go back to the fi...
  2. Citrix SSL
    When using Citrix Secure Gateway do I need to also enable SSL relay?
  3. RSA and Citrix
    Does anybody know how to configure Citrix Web Interface with RSA SecureID??? Can't find any docs about it and am well and truly stuck. I have so far done the following. Setup Citrix Web Interface in my DMZ, this is a DMZ created with ISA 2004. I have created the Inbound por...
  4. Citrix PS4 - Apps launching on wrong server - URGENT…
    URGENT!!!! I have a Citrix PS4 farm with about 10 servers and 2 WI 4.0 servers, all boxes are 2003 standard. I have added 4 servers to the farm recently which could not be logged on to from the WI servers which led me to looking at the XML port being used by the farm. Seeme...
  5. RDP Clients Load Balancing In Citrix PS4
    I have a couple of citrix servers that were recently upgraded to PS4 from XPa. We have a mix of RDP and ICA clients. I was told with this version of Citrix that Citrix could load balance the RDP connections. We do not use the web interface. Is there anyway to get Citrix t...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: CarlWebsterPosted on 2009-03-27 at 04:09:10ID: 23999652

 

by: tech2010Posted on 2009-03-27 at 07:54:23ID: 24001559

Hi CarlWebster

Thanks for this.

I think you did a greate job by publishing this detail article, i am sure this will really help all IT folks out there in the world trying to configure secure gateway access. Thanks again.

Now, It look like probably i will uninstall my existing web interface, secure gateway, certificate and will follow your article from scratch, however before that i would like to take your advice on below:

Presently I have Citrix Presentation Server 4.0 farm of 25 servers running in production, since we are fully licensed to download and install new Xenapp (confusing terms -:) ). I had downloaded latest web interface 5.1 from citrix website and installed on my Web interface server, bearing in mind i am still running PS4.0 in the citrix farm where all my published apps are hosted.
And as far as secure gateway is concerned, instead of downloading latest version i had installed SG 3.0.1 from my PS4.0 component CD on the same server, probably that's why things are not working because i have all mixed of old and new version. I have Web Interface 5.1 and SG 3.0.1 on the same server and STA and Citrix Farm is running on PS4.0 whats your comments on this kind of setup?

Secondly, After reading your article i wanted to build web interface and SG on a clean server and follow your instructions, now my question will there be any problem using Web Interface 4.6 and SG 3.1 communicating with PS4.0 citrix farm or should i first upgrade my whole citrix farm of 25 server to Xenapp servers which is hell of job. Or new Xenapp plugin and SG 3.1 are compatible with PS4.0 and they should work together without any problem? what you recomend?
Thanks

 

by: CarlWebsterPosted on 2009-03-27 at 07:59:29ID: 24001618

Web Interface 5.1.1 is VERY different from Web Interface 4.x.  I would stay away from it right now.

Web Interface 4.6 and CSG 3.1 will work just fine with PS4.0.

I haven't had ANY issues on any Citrix farm upgrading servers from 4.0 to 4.5.

Upgrae your data collector first, then farm metric servers (if any), then database connection server (if any) and then the rest of the servers.

Backup your data store first.

 

by: BLipmanPosted on 2009-03-27 at 08:11:07ID: 24001756

I just put together a new WI 5/CSG box using the CSG version on the XenApp 5 disk, it went just like any other site I put together.  If you want to try the latest stuff just follow CarlWebster's walkthrough but use the newer versions.  There is that frightening thing about being on the bleeding edge though.  The 4.5 version is more seasoned.  

 

by: CarlWebsterPosted on 2009-03-27 at 08:13:39ID: 24001785

I am also redoing the 3 part series for WI5.1.1/CSG3.1 on server 2008.  But I am going to AR to see my new grandbaby this weekend so the next 3 parter will have to wait until next week.

 

by: tech2010Posted on 2009-03-27 at 08:16:52ID: 24001822

well said! so for the moment i will just install WI 4.6 and SG 3.1 to work with my PS4.0

In order to upgrade as you suggested, is that mean that eventually i then will have to upgrade or install Xenapp on all 25 servers? I was thinking that i might have to just upgrade only one or two servers in my farm like data collector etc.. and my farm will be upgraded?

Another thing: because i will not be using GoDaddy for CA so is it ok if i install Microsoft Certificate Server in my network and use it to issue the certificate for SG and follow reset of your article to install certificate but only skip GoDaddy section of your article?

Thanks

 

by: BLipmanPosted on 2009-03-27 at 08:21:21ID: 24001885

Using your own CA should be fine as long as you want to do the work of loading the client half everywhere.  Your WI/CSG version can be different than your App server version.  A WI 5 works fine with PS4.5.  I would get off of PS4 though, it is EOL, EOM at the end of the year: http://www.citrix.com/site/SS/supportThird.asp?slID=5107&tlID=5110

 

by: CarlWebsterPosted on 2009-03-27 at 08:23:05ID: 24001905

When you install the first 4.5 server your data store and data collector are automatically upgraded.  Your farm is now in mixed mode and Citrix only recommends running in mixed mode for brief periods of time while you upgrade the rest of the servers.  The danger is that once you introduce a 4.5 server, ALL farm mgmt MUST be done from the 4.5 server.  If you then attempt to use a 4.0 server for farm mgmt you run the risk of corrupting your data store and destroying your farm!!!

Yes, you can use your own MS Cert Srvr with no issues in place of the GD instructions.  Are the certs you generate from your MS Cert Srvr trusted on the Internet?

 

by: tech2010Posted on 2009-03-27 at 08:49:05ID: 24002272

Thanks BLipman and Carl, I will probably first give it a go with WI 4.6 and SG 3.1 as per Carl article just to minimize the chance of being unfortunate for another time :)

Carl, I don't think so that our Cert Svr are trusted on internet as i will just install MS Cert Srv and will generate certificate, just to let you i don't know anything about certs how they works! all i wanted that my SG to work.

 

by: BLipmanPosted on 2009-03-27 at 08:54:48ID: 24002337

So here is something that may make your life easier if you aren't very comfortable with manually managing certificates.  The $30/year cert you can buy from GoDaddy will work with 99% of all browsers without you needing to do anything extra.  It is a small cost for ease of use and nearly universal acceptance.  When you do your Trusted Root Certificate updates in Windows you are preloading all of these commercial shared keys so people like Thawte, Verisign, and even GoDaddy are already functional in your browser.  

I didn't know if you had other reasons but it is a small cost savings to avoid the pain of cert management.  Now if you had all internal users, had an enterprise CA that autoenrolled your users...or even if you were just testing or rolling something small out, I would say doing your own CA is worthwhile.  Managing a CA properly will cost you more than $30/year in man hours though.  Just my thoughts.  

 

by: tech2010Posted on 2009-03-27 at 08:54:50ID: 24002338

Only our company user's will be accessing our citrix farm via SG from outiside so i think we don't need to purcahse certificate from third party as this is not for public use.

 

by: BLipmanPosted on 2009-03-27 at 08:59:57ID: 24002399

I still use a public cert because I am lazy and $30 is cheaper than having my desktop guy take support calls on old certificates.  Using your own will work fine though.  If you want to make it even easier you can alter your WI site to give users links to your p7b and a PDF for loading certs.  You can do all sorts of customization to the site.  Do a web search on 'branding the citrix web interface' and you will get all sorts of info.  

Good luck!

 

by: tech2010Posted on 2009-03-27 at 09:44:12ID: 24002945

Hi Carl/BLipman

Other thing i was going to ask that i have not got access of my external DNS authority so when i do my test as outside users accessing citrix gateway i just type public IP address of my firewall which obiously NAT to my SG machine. so my question is that is it OK i mean should i work using IP address in the browser rathar than type FQDN name of my domain as i have not added host record in my external DNS. I asked this becasue i have seen in the Carl article saying something about adding host record in the local host file on web interface server and pointing to FQDN which outside users will be typing. So before i modify DNS, is it ok if i do my test and get it working using public IP and then once happy then i add entry in my external DNS. OR do i have to first add record in my external DNS. thanks

 

by: CarlWebsterPosted on 2009-03-27 at 10:04:18ID: 24003194

accessing the public IP directly is fine, BUT the SSL cert will complain that the IP doesn't match the FQDN assigned to the cert.  You can ignore that msg and continue on.

 

by: tech2010Posted on 2009-03-30 at 13:17:30ID: 24022865

Hi Carl

I have followed your article but unfortunately i am still having problem. Internally things works just fine but out from outside i get error "SSL relay can't resolve name"

Let me just tell you something about my setup:

In my gateway address FQDN setting in web interface i have mentioned netbios FQDN name of my windows domain which is only accessable from inside as my DMZ machine is a domain member. Could this be the reason of not working? Because i have used my internal netbios FQDN windows domain name while registering certificate. so my certificate common name was my windows domain name.

And I have also tried putting my public IP address into the gateway address but then i get some certificate error. Also i have not assign or added host record for my public IP address which my outside user should use because at the moment i don't have access of my external DNS.

please tell me something what i am doing wrong.

Thanks


Let

 

by: CarlWebsterPosted on 2009-03-30 at 14:04:01ID: 24023332

Your SSL certificate name should be the name people will use to connect to the Citrix Secure Gateway.  For me, this is citrix.websterslab.com even though the NetBIOS name is CitrixWI.citrixlab.local.

People use their Internet browser to go to https://citrix.websterslab.com.  citrix.websterslab.com resolves, right now, to 68.119.110.135.  In my firewall/router I redirect all TCP port 443 traffic to the internal IP address of CitrixWI which is 192.168.1.105.

Users hit https://citrix.websterslab.com which goes to 68.119.110.135:443 which goes to 192.168.1.105.  If there are no certificate errors the web interface site shows up in their browser.  The web interface then uses the XML Broker to authenticate the user's log on credentials using ctxgina.dll.  If the creds are accepted then the XML Broker contacts the Zone Data Collector which uses its dynamic store to determine 1 of 3 things:

does the user have a connected session on a server - if so, connect to that server
does the user have a disconnected session on a server - if so, connect to that server
If the user has no connected or disconnected session, then look in the dynamic store to find the "least busy server" and connect the user to that server

 

by: tech2010Posted on 2009-03-30 at 15:00:00ID: 24023889

OK, so is this mean that i must have to have valid internet domain name mapped to my public IP address in the public DNS in order to setup SSL certificate, because i have not amended my public DNS yet so i am just using https://194.75.137.x in my browser to test SG from outside and according to you that is not going to work then until i have FQDN name for above IP address?

I type https://194.75.137.x in my browser from outside and i get the logon page and i can logon successfully and able to see all my published applications but when i click any of the app it give error message.

I am thinking to gain access of my public DNS and add host record for my public IP address like
citrix.mypublicdomain.com ----> 194.75.137.x
and then resetup my certificate and then see if it make any difference. whats your comments?
Thanks

 

by: CarlWebsterPosted on 2009-03-30 at 15:16:14ID: 24024030

You can use the public IP and just ignore the certificate error.

Did you make the changes to the DMZ settings in the Access Mgmt Console?  i.e. Gateway Direct

 

by: tech2010Posted on 2009-03-30 at 15:23:17ID: 24024079

yes i am using "Gateway Direct"

After responding to certificate error message to 'OK' it does not do anything. Becaue i get error when i click on published application and whilst it goes to connecting and on that connecting screen it stary for 5 seconds and then gives me error. I can't ignore error.

 

by: tech2010Posted on 2009-03-30 at 15:35:45ID: 24024172

do you mean that it is ok to put public IP address under the gateway FQDN address?

Also i have attached the error message for you.

Thanks

 

by: tech2010Posted on 2009-04-01 at 07:09:28ID: 24039263

any more comments or idea are welcome ? Thanks

 

by: CarlWebsterPosted on 2009-04-01 at 07:18:06ID: 24039357

sorry trying to meet a delivery deadline for a huge Citrix project for a customer out west.  Be patient.

 

by: tech2010Posted on 2009-04-01 at 08:49:57ID: 24040465

sure thats fine. probably someone else should pick up this.

 

by: CarlWebsterPosted on 2009-04-01 at 08:56:03ID: 24040548

I was hoping BLipman or mgcIT would chime in.

 

by: BLipmanPosted on 2009-04-01 at 09:12:54ID: 24040754

Hello there,
here is a list of common SSL Errors: http://support.citrix.com/article/CTX711855

Where are you trying this from?  I would suggest starting from the Secure Gateway box and working out.  You say it works internally right?  Test in this order: from the CSG box, then from the LAN, then from the Internet.  Are you using the FQDN when you are testing or just the IP?  
Next, right click on an application from the Internet (assuming you have it working from the box and the LAN already).  Choose Save As, save the Launch.ica file to your desktop, and open it with Notepad.  Please post the contents, this helps a ton.  

 

by: tech2010Posted on 2009-04-01 at 09:12:58ID: 24040755

ok i have requested attention for this message. thanks

 

by: tech2010Posted on 2009-04-01 at 09:14:55ID: 24040774

Carl, by the way just to let you know i am going to trash the existing machine and setting up a new machine in DMZ without making a domain memeber and redoing all the setups. This will be my third attempt. I hope and pray it work this time. Thanks

 

by: BLipmanPosted on 2009-04-01 at 09:23:21ID: 24040862

Don't get frustrated, CSG+WI isn't always the most intuitive setup; it sill takes me a few tries at getting the config just right.  

BTW, can you reply to my last post?  Otherwise I will just let Carl work this thread with you.  

Ben

 

by: dphantomPosted on 2009-04-01 at 09:24:20ID: 24040873

The WI SG settings must be configured to point to the exact same name as is in your SSL certificate.

http://forums.citrix.com/message.jspa?messageID=442145

Can you verify that is the case?

 

by: tech2010Posted on 2009-04-01 at 12:54:26ID: 24043267

Hi Ben,

sorry for late reply, when i try from gateway machine it does not work but from internal LAN it work.

Just to tell you that i use Windows Netbios FQDN when i try from LAN, and i use external IP address when i try from internet. The reason i use IP address from internet because i have no host record added in my public DNS for citrix gateway FQDN, is it needed to get it working or is it ok to try with IP address from outside.

Anyway, i have now trashed the whole machine and i am building a new gateway server, once i have built in a day i will then send you launch.ica.txt

Thanks

 

by: CarlWebsterPosted on 2009-04-01 at 12:59:20ID: 24043343

It is supposed to work from the gateway computer.  Are you installing both web interface AND secure gateway on the same computer?  If so, then it MUST work from the gateway computer.

 

by: tech2010Posted on 2009-04-01 at 13:06:19ID: 24043427

yes it is the same server, things works fine until i configure certificate and install secure gatway, remeber i have also installed Ms certificate service which i use to issue the certificate although it is not trusted on internet but it support to work. This whole setup made me mad, but i am not going to give up, even if i have to reinstall ten times.

 

by: BLipmanPosted on 2009-04-01 at 13:15:28ID: 24043533

It sounds like you almost have it.  For CSG I have always had the best luck using the SSL FQDN everywhere; at least for initial testing, then you can play around with the IP or a local netbios name.  

Here is the way to get around your external DNS issue though:
configure a host record on an external machine to resolve the SSL FQDN to your external IP.  Do the same from your CSG box if you must but you should be able to do this via you internal DNS unless the box goes straight to the Internet for DNS.  If that is the case then you have other issues because, like CarlWebster said, your WI and CSG must talk to eachother with FQDNs.  

What may work is one thing but you want to test with the lease amount of variables and then make it more complex as you succeed.  

Don't give you, you are gaining valuble experience with troubleshooting and building these systems!  

 

by: tech2010Posted on 2009-04-01 at 14:28:31ID: 24044220

Please define what does it mean when you say SSL FQDN? Is this the domain name which can resolve over the internet e.g. Citrix.MyPublicDomain.com OR is this local windows domain e.g. hostname.mywindowsdomain.local?

what do you mean by external machine?

it sounds like i must need to have a host record in my external DNS to get it working?

 

by: BLipmanPosted on 2009-04-01 at 14:46:34ID: 24044374

The SSL FQDN is whatever common name you have in your certificate.  For example, I may have a server called ctx1.mydomain.ad with an internal IP of 192.168.1.2 and an external IP of 1.2.3.4 but my external DNS name is applications.mycompany.com which resolves to 1.2.3.4.  You should do all of your testing and setup with "applications.mycompany.com", not the IP or the internal FQDN (ctx1.mydomain.ad).  

...but what about when you have no control of external DNS or need to do this as a one-off for testing?  Well, we hack your hosts file.  Put a machine on the Internet outside of your company network (you can dial up a Cell modem, remote into a home machine, steal your neighbor's WiFi...whatever).  This machine won't be able to resolve applications.mycompany.com though because you don't have an A record in your external DNS.  So, navigate here: C:\Windows\System32\drivers\etc, open the "hosts" file with notepad and add a line right below the "localhost" line...just like this.  

127.0.0.1       localhost
1.2.3.4           applications.mycompany.com

close this file, go to the command prompt, do a
nbtstat -R  
(must be capital R), this will reload your name cache and preload any manual hosts entries.  Now ping your external (SSL) FQDN and it should resolve.  This will now allow you to use the right IP/FQDN combination whereever you are testing from.  

Once you are successful, you can try it out with other combinations like IP address and whatnot.  

 

by: CarlWebsterPosted on 2009-04-01 at 14:56:37ID: 24044437

You mean, just like I showed in my article? :)

 

by: tech2010Posted on 2009-04-01 at 15:26:08ID: 24044617

Thanks for explaining Ben.

So its mean that common name in my certificate should only be "applications.mycompany.com". right?

second thing you said that if i have no control on external DNS, well at the moment yes this is the case but i am trying my best to add a host record to my external DNS until then i can do the way around you suggested and as per in Carl's article :) but i am confused that by adding a line of public IP in an internet machine how this public FQDN "applications.mydomain.com" will advertise on internet and how any other machine on a different planet will able to resolve this?



 

by: BLipmanPosted on 2009-04-01 at 16:24:14ID: 24044909

They won't resolve this, it will only help you determine if everything is going to work once you get your external DNS entry in place.  Then, once you have confirmed this, you can test via IP and see if it works that way as well.  You always want to test with fewer variables and then add them in.  Start with the most likely to work and go out from there.  

The common name in your cert is arbitrary, it can be BobPeteSam.123.org if you own the 123.org namespace.  In your certificate you should see no http:// stuff though, it should be a "host.WhateverYourDomainIs.whatever".

Sorry Carl, I didn't read the article but it sounds like you have a pretty complete walkthrough there.  

 

by: tech2010Posted on 2009-04-02 at 01:36:49ID: 24047629

Ben and Carl, you both been very helpful. I will give it another go and will let you know the outcome. Thanks

 

by: tech2010Posted on 2009-04-03 at 13:02:58ID: 24063676

Hello Ben and Carl,

Finally i managed to get SG working from internal and external. I added an entry into my public DNS and then re-installed everything from clean and things just worked at the first time.

It is now working with using either IP and FQDN from outside.

However one thing i need to ask infact a problem: Because i use certificate generated by own private CA. so when i goto any computer on the internet (outside world) and logon to my citrix web SG, i can see my published app but when i click to open any published app i get an error "Error SSL 61: You have not chosen to trust the issuer of the server's... "  and when i install certificate on that machine then it work awsome. so is that mean i have to install that certificate to all of my remote user's pc's in order to work from outside.

Like i give you example, i went to my friend's home today and goto my web citrix SG URL and when i clicked on published app i get above SSL error, so because i have taken certificate.p7b file in my usb so i then installed on his machine and then all worked awsome.

so please suggest how do i get rid of this issue now.

Thanks

 

by: CarlWebsterPosted on 2009-04-03 at 13:36:42ID: 24064008

A way to get rid of the issue is to buy a $30 GoDaddy SSL cert and use it instead of your self-signed and self-generated cert.

If you insist on wasting your valuable time with your own cert, then you will need to provide each person with a copy of the file that you had to use at your friend's place.

 

by: tech2010Posted on 2009-04-03 at 14:25:39ID: 24064472

yes you are rite, i will try to convince my manager to buy SSL cert. Thanks

Just another last thing, sorry to be a pain. But i want to redirect http:// to https:// as the moment it let me to go to http and https but i want that when users go to http:// it autmatically redirect to https://
Is there any easy way for this?

Thanks again

 

by: BLipmanPosted on 2009-04-03 at 15:14:36ID: 24064811

There are two ways I typically do this, each with their own reasons.  The one I normally suggest is this:

go into IIS and check "require SSL", now people will get a 403-4 error when they use http://
now, go into IIS and point this to a custom error message.  I normally just edit the default 403-4.html file and call it 403-4-redirect.html.  You just need to add a meta refresh tag in the <head> section of the file pointing to https://MyCitrixSite.whatever...

 

by: tech2010Posted on 2009-04-03 at 17:22:11ID: 24065388

can you please tell me the exact code i need to put into 403-4.html as i dont have scripting skills. thanks

 

by: tech2010Posted on 2009-04-04 at 04:45:25ID: 24066977

I tried to create a asp file (SSLRedirect.asp) on web root with the following code and replaced the 403.4 custom error to URL to /SSRedirect.asp and then enabled "SSL required check" but it seems that the IIS on my citrix gateway server not happy to run .asp files. Do you have any suggession?
<%
Data = request.servervariables(QUERY_STRING)
URL = replace(Data, 403;, )
URL = replace(URL, http://, https://)
response.Status = 200 OK
response.redirect URL
%>

 

by: CarlWebsterPosted on 2009-04-04 at 05:15:35ID: 24067052

use HTML, not ASP.

 

by: tech2010Posted on 2009-04-04 at 06:17:28ID: 24067242

can i put the same above code in the html file? will it work? i will give it a go.

 

by: tech2010Posted on 2009-04-06 at 02:05:38ID: 24075409

Hi Carl/Ben

I had debate with my manager when i told him that we have to buy a certificate for citrix gateway. This is not about the cost but he does not think that it is needed. He thinks it will work with my own generated certificate because it is just for making internet user feel that they will be connected through the secure channel. Because we already have our webmail working with the same way where he did not had to buy citrix so he is related the same with citrix gateway as well.

As you know in my curent scnerio if a person connecting to gatreway from internet he has to install certifucate on his machine otherwise he will get certifucate error and as you suggested that to resolve this issue i have to buy certificate from trusted root e.g. godaay or versign etc..

please clearify.

thanks

 

by: tech2010Posted on 2009-04-06 at 03:09:21ID: 24075731

he is arguing me, please explain?

 

by: CarlWebsterPosted on 2009-04-06 at 04:09:59ID: 24076039

Save $30 and spends hours of your, obviously worthless time (according to your boss), and use your own SSL cert.  Don't argue with the boss.  He obviously knows more than the experts here do.  Then we things get to be a royal PITA, buy your $30 certificate.

I will not waste my time arguing over trying to save you $30.  Either do what we recommend or what your boss says.  He is in charge of your pay so I know who I would follow.  Just document our conversations here to CYA when things don't go well.

I will be gone all week so I will not be back on EE for another week.

 

by: tech2010Posted on 2009-04-06 at 05:10:55ID: 24076441

Carl, i respect what you saying as i said that this is not about cost. We are happy to spend $30 but i was looking to find some technical answer from your side rather than suggesting the same things. Technical answer mean "Privately generated cert Vs buying cert for secure gateway"?

Anyway, thanks for your help. I will close this case now.

 

by: tech2010Posted on 2009-04-06 at 05:28:57ID: 31563427

Thanks Carl and Ben

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...