Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Domain root as endpoint URL  (Read 16881 times)
Anderson P.
Posts: 82


« on: February 14, 2014, 06:47:43 pm »

I would like to know if there is some way of setting a domain root as the endpoint URL in the "ws.ident.url" entry, so i will be able to set a single security identifier to be used in all services of that domain.

To clarify, today i use multiple web services of a single domain, so my FGLPROFILE is like:

Code
  1. ws.service1.url = "https://mdfe.sefaz.rs.gov.br/ws/MDFerecepcao/MDFeRecepcao.asmx"
  2. ws.service1.security = "certificate"
  3.  
  4. ws.service2.url = "https://mdfe.sefaz.rs.gov.br/ws/MDFeRetRecepcao/MDFeRetRecepcao.asmx"
  5. ws.service2.security = "certificate"
  6.  
  7. ws.service3.url = "https://mdfe.sefaz.rs.gov.br/ws/MDFeRecepcaoEvento/MDFeRecepcaoEvento.asmx"
  8. ws.service3.security = "certificate"
  9.  

...and for each new service i have do make a new entry in FGLPROFILE.

Isn't there a way to make my configuration like this:

Code
  1. ws.service1.url = "https://mdfe.sefaz.rs.gov.br/ws/*"
  2. ws.service1.security = "certificate"
  3.  

...so all services hosted in the domain "https://mdfe.sefaz.rs.gov.br/ws/" will use the same default certificate.

Thanks for your attention.
Frank G.
Four Js
Posts: 48


« Reply #1 on: February 17, 2014, 09:11:27 am »

Hi,

  Since GWS 2.50, you can use wild-cards in URLs of the FGLPROFILE file just the way you said. An URL terminating with /* will be used for all matching URLs if not more specific URL configuration has been specified. See documentation here : https://4js.com/online_documentation/fjs-fgl-manual-html/?path=fjs-fgl-manual#c_gws_ssl_config_url_wildcard.html .

  Notice also that since GWS 2.40, you can specify global security entries (security.global.certificate and security.global.privatekey) in order to use that SSL configuration for all of your HTTPS connections. See documentation here : https://4js.com/online_documentation/fjs-fgl-manual-html/?path=fjs-fgl-manual#c_gws_ssl_configuration_categories.html#r_gws_ssl_configuration_002 .

Regards,
Frank
Anderson P.
Posts: 82


« Reply #2 on: February 17, 2014, 12:03:29 pm »

Frank, thank you for the quick answer. I will try it out and let you know if it works.
Anderson P.
Posts: 82


« Reply #3 on: February 17, 2014, 08:05:13 pm »

I was about to try the solution but figured out that we are still in 2.40.
We will be updating to 2.50 until march, then i will use the wildcards solution.

The global certificate solution is also interesting, but since we have different certificates for different services, it will not work for us.

Thank you very much for your attention. When we update Genero the wildcard solution will solve my problem.
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines