Skip to content

Connecting to HTTPS Upstream service. #738

@sidvanarse

Description

@sidvanarse

I have my secure service running on HTTPs using following options.

new HttpServerOptions().
		setSsl(true).
		setClientAuth(ClientAuth.required).
		setKeyStoreOptions(
			new JksOptions().
				setPath("Certificate.jks").
				setPassword("password")
		
		).
		setTrustStoreOptions(
			new JksOptions().
				setPath("ca_cs_combined_prod.jks").
				setPassword("password")
		)

When i connect to my service at https:\localhost:8080\getToken using chrome i get pop up to select certificate and after selecting certificate i am able to call this service fine.

I have registered my service in consul with proto=https option.

But i am unable to call this service using fabio. My use case here is service registered in Consul is HTTPs and fabio is runing with HTTP and not as HTTPs. Is it possible to call this upstream HTTPs service such as http:\localhost:9999\getToken. How to use jks certificates with fabio?

With current set up of i try to query my HTTPS upstream service using fabio i am getting folowwing error:
cannot validate certificate for ipadress because it doesn't contain any ip sans

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions