Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore HTTP authentication support in eureka client #756

Closed
tbak opened this issue Feb 26, 2016 · 4 comments
Closed

Restore HTTP authentication support in eureka client #756

tbak opened this issue Feb 26, 2016 · 4 comments

Comments

@tbak
Copy link

tbak commented Feb 26, 2016

Check #755 for the context.

@kennedyoliveira
Copy link

Hello! Any news on this topic?

@tbak
Copy link
Author

tbak commented Mar 14, 2016

Sorry, we have been busy recently. Would you like to make a PR for this?

@kennedyoliveira
Copy link

I would love to, but don't know how can i make it, if you give me some hints, i don't understand the eureka server, well didn't looked at the source through.

Anyway, i'll try, but would be very helpful if you could give me some advices.

Thank you!

tbak pushed a commit to tbak/eureka that referenced this issue Mar 15, 2016
tbak pushed a commit that referenced this issue Mar 17, 2016
Fix issue #756 (restore HTTP authentication support)
@tbak tbak closed this as completed Mar 17, 2016
@yangguang001
Copy link

i use jks credential, i create it on jvm (build 1.8.0_151-b12), in the server i use server.keystore, in the client i use server.cer.
but error message:
Caused by: java.io.IOException: Invalid keystore format
at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:658) ~[na:1.8.0_111]
at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:56) ~[na:1.8.0_111]
at sun.security.provider.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:224) ~[na:1.8.0_111]
at sun.security.provider.JavaKeyStore$DualFormatJKS.engineLoad(JavaKeyStore.java:70) ~[na:1.8.0_111]

server.keystore:
keytool -validity 365 -genkey -v -alias server -keyalg RSA -keystore server.keystore -dname "CN=127.0.0.1,OU=icesoft,O=icesoft,L=Haidian,ST=Beijing,c=cn" -storepass 123456 -keypass 123456
server.cer:
keytool -export -v -alias server -keystore server.keystore -storepass 123456 -rfc -file server.cer

@Configuration
public class EurekaJerseyClientAdapter
{
    @Bean
    public EurekaJerseyClient eurekaJerseyClient()
    {
        EurekaJerseyClientImpl.EurekaJerseyClientBuilder builder = new
                EurekaJerseyClientImpl.EurekaJerseyClientBuilder()
                .withTrustStoreFile("server.cer","123456");
        return builder.build();
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants