NetTalk Central

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - BColladay

Pages: 1 [2] 3
16
Web Server - Ask For Help / Re: JQuery display in IE8
« on: December 09, 2010, 06:40:36 AM »
Even though those both seem to be "intranet" sites to you and me, My guess is that IE8 is giving your 127.0.0.1 site to you in compatibility mode and the http://namedserver:88 in IE8 mode.  The big clues to this are that firefox works on both and that it is getting messed up on the non-local server.  

To verify, on the non-local server, set to "Compatibility View" and see if it matches your local version. If it does than this is your issue.

I've ran into this lately.  IE8 by default shows local intranet pages in compatibly view.  

You can change that setting in: Tools-> Compatibility View Settings-->Uncheck "Display Intranet Sites in Compatibility View.

17
Web Server - Ask For Help / Re: Intermediate CA SSL File - How to use
« on: December 07, 2010, 08:23:19 AM »
So my NTWS in its current state has a bundled crt file and a key file.  I have the site certificate as the first certificate, then the intermediates and root certificates all in the same file: pdsweb.crt which the NTWS uses.  When I do the openssl connect and showcert commands I get the attached file as the output.  The other attached file is the pdsweb.crt that NTWS is using.  Does that shed any light?

[attachment deleted by admin]

18
Web Server - Ask For Help / Re: Intermediate CA SSL File - How to use
« on: December 02, 2010, 06:16:50 AM »
Thanks, I would appreciate that.  I've been 3 plus days going through iterations of merging files through various methods.   Will NTWS use a pem file in addition to crt and key files?  I guess that is my biggest question right now.


19
Web Server - Ask For Help / Re: Intermediate CA SSL File - How to use
« on: December 01, 2010, 07:37:43 AM »
Still not working.

I have tried this suggestion:

Quote
I think the order matters to some tools... try them in the file in this order:

(1) your certificate
(2) intermediate authority
(3) root authority

I even tried all possible orders.

I have tried it with the combined as a named.pem file a named.crt file as well and combinations of each.

I think I need assistance or guidance as to how NTWS would use the intermediate Cert

It looks like DontVerifyRemoteCertificateWithCARoot = 1 actually should work right, it will not attempt to verify the Root cert, which would go through the intermediate cert.  Is this correct.

20
Web Server - Ask For Help / Re: Intermediate CA SSL File - How to use
« on: November 29, 2010, 01:21:17 PM »
This page and the copied section below seem to say that pem files are used by NTWS.


http://www.capesoft.com/docs/nettalk/NetTalkWebSecure.htm#Create_Certificate_Signing_Request


Quote
Part 3
Open a command prompt window, go to the temp folder
type
openssl pkcs12 -in whatever.pfx -info -out whatever.pem -nodes
openssl pkcs12 -in whatever.pfx -clcerts -nokeys -out whatever.crt
openssl pkcs12 -in whatever.pfx -nocerts -out whatever.key

Part 4

Copy the pem, crt and key files to your \certificates folder

I tried using this:
Code: [Select]
ThisWebServer.SSLCertificateOptions.CARootFile = clip('web') & '\' & clip(lcl:CertPathName) & '.pem'
In the embed section shown here:
Code: [Select]
! Start of "WindowManager Method Executable Code Section"
  ! [Priority 50]
        lcl:CertPathName = 'Certificates\' & getini('pathinfo', 'certname', 'setting', '.\PDSwebpath.ini')       
        lcl:UserDefPort = getini('pathinfo', 'port', '89', '.\PDSwebpath.ini')
  ! [Priority 300]
  DO CleanUpTempFiles
  ! Enter procedure scope
  GlobalErrors.SetProcedureName('WebServer')
  ! [Priority 800]
   
  ThisWebServer.SSL = 1 ! Use SSL to make a Secure Web Server
  ThisWebServer.SSLCertificateOptions.DontVerifyRemoteCertificateCommonName = 1
  ThisWebServer.SSLCertificateOptions.DontVerifyRemoteCertificateWithCARoot = 1
  ThisWebServer.SSLCertificateOptions.CertificateFile = clip('web') & '\' & clip(lcl:CertPathName) & '.crt'
  ThisWebServer.SSLCertificateOptions.PrivateKeyFile =  clip('web') & '\' & clip(lcl:CertPathName) & '.key'
  ! [Priority 2000]
  ThisWebServer.SSLCertificateOptions.CARootFile = clip('web') & '\' & clip(lcl:CertPathName) & '.pem'
  ! [Priority 4000]
 
  ! Snap-shot GlobalRequest
  SELF.Request = GlobalRequest                             ! Store the incoming request
  ! [Priority 4950]

It looks like the DontVerifyRemoteCertificateWithCARoot = 1 setting would cause it to ignore the pem file






21
Web Server - Ask For Help / Re: Intermediate CA SSL File - How to use
« on: November 29, 2010, 09:09:03 AM »
Alberto, I am also interested in finding out how to use those settings, specifically: SSLCertificateOptions.DontVerifyRemoteCertificateWithCARoot  It seems I need to do just that in order to get Android devices to trust the certificate. 

I can tell the browser to ignore the trust issue but it tries to "download" pdf files instead of "browsing" them in the browser.  Apparently the downloader in Android has no method by which to let you know the certificate isn't trusted and it just sits there unable to start the file download.

22
Web Server - Ask For Help / Re: Intermediate CA SSL File - How to use
« on: November 26, 2010, 09:29:04 AM »
Ok, so I jumped the gun as usual...When I "fixed" it for "Android" it broke it for everything else...I'll let you know.

23
Web Server - Ask For Help / Re: Intermediate CA SSL File - How to use
« on: November 26, 2010, 06:41:51 AM »
Okay, it was easy enough...I just don't know why / how it works...but I finally just renamed my intermediate CA fiel(p7b) to my NTWS [certificatename].pem that seemed to fix it.  I couldn't get it to work through many incantations of combining the certificate files.

24
Web Server - Ask For Help / Intermediate CA SSL File - How to use
« on: November 24, 2010, 12:22:13 PM »
I am getting a "certificate not trusted" only on Android Devices.  It is a GoDaddy certificate and work on every browser everywhere except Android.  This is a known issue when you don't have the intermediate CA file, this is the solution:

http://community.godaddy.com/help/article/870?isc=smfor1


Does anybody know how to use an intermediate certificate along with the key and standard crt file on NTWS?

25
Thank you kind sir!

26
NetWebBrowse-Fields-Conditional Tab-Properties

When I add a display option in the Conditional Tab.  And fill it out as the attached image shows, I get a compile error and points to the following code.  The offending section of the display options is the Image CSS.

You can see in the code snippet that in the pat:PlaceHolder = 'P' section, the CreateImage() has 2 extra commas before the class name and an unmatched ) after.  If I take the 'unregpat' class name out of the "Display Options" that section returns to looking like the pat:PlaceHolder='' section

Code: [Select]
code
  If p_web.GetSessionLoggedIn() = 0 then loc:FormOk = 0.
    if false
    elsif pat:Placeholder = 'P'
      packet = clip(packet) & p_web.DivHeader('pat:Name_'&pat:PatientID,,net:crc)
      packet = clip(packet) & p_web.CreateImage('images/unregpat.png','16px','24px','unregistered patient',,,,,,'unregpat'))&p_web.CreateHyperLink(Left(Format(pat:name & '  ' & pat:Suffix,'@s40')),,,p_web.combine(p_web.site.style.BrowseHyperlinks,,),,,,0)
    elsif pat:Placeholder = ''
      packet = clip(packet) & p_web.DivHeader('pat:Name_'&pat:PatientID,,net:crc)
      packet = clip(packet) & p_web.CreateImage('images/regpat.png','16px','24px','registered patient',,,,)&p_web.CreateHyperLink(Left(Format(pat:name & '  ' & pat:Suffix,'@s40')),,,p_web.combine(p_web.site.style.BrowseHyperlinks,,),,,,0)
    else
      packet = clip(packet) & p_web.DivHeader('pat:Name_'&pat:PatientID,,net:crc)
      packet = clip(packet) & p_web.CreateImage('','','','',,,,,,'') & p_web._jsok(Left(Format(pat:name & '  ' & pat:Suffix,'@s40')),0)
    End
    packet = clip(packet) & p_web.DivFooter(Net:NoSend)
    if loc:eip = 1
      do SendPacket
    end

[attachment deleted by admin]

27
So, as it turns out, if you should ever run into this...you need to set the max field length to something that will hold your data.

If you don't and the picture is too small, when the truncated string is passed back to your server, it will say "what is this rubbish" and will clear the truncated field.

The real "bug" is in the desktop versions of the browsers.  It would allow the web process to put more characters in the field than it would allow you to type.  So if the field was restricted to 5 characters, it would allow 120 characters to be filled in by the web process, but if you tried to type the same string it would stop accepting characters after 5 strokes.

Thanks, this has been therapeutic.

Bob


28
Also works for Opera on iPhone.  Which led me to another discovery that may be part of the puzzle.

On the failing platforms:  Android/Browser & iOS/Safari, the fields that are disappearing are truncated when they are filled in.

So Instead of Jackson, Bill, I get Jacks on the field that will disappear shortly.

better screen shots to follow.

29
Oh and just for kicks, I tried this on Android with the opera mobile browser, and it works correctly. ??? ???

30
I shot a very bad quality video of the behavior.  at about 0:55 you can see when populating the third field from the lookup, the second field gets blanked.
http://www.youtube.com/watch?v=TOTW87Djypo

Pages: 1 [2] 3