Re: [grpc-io] Use JKS (Java KeyStore) file rather than key + cert for grpc-java ssl encryption

2021-03-24 Thread Jeff Gaer
I'm confused by the answer. I build my server using the following code.

server = ServerBuilder.forPort(port). useTransportSecurity(certFile, 
keyFile).addService(this).build().start();
I don't see anyway to set the channel on the ServerBuilder.

On Wednesday, April 26, 2017 at 12:49:13 PM UTC-5 Ran Bi wrote:

> I see.
> Thanks so much for the quick reply, Eric! 
>
> On Wed, Apr 26, 2017 at 8:07 AM 'Eric Anderson' via grpc.io <
> grp...@googlegroups.com> wrote:
>
>> If you want to use TLS client certificates or the server's certificate 
>> isn't trusted by the default root (i.e.., it is self signed or you've made 
>> your own certificate authority), then yes. But most of the time you don't 
>> need to specify an sslContext on client-side and just let gRPC use its 
>> default.
>>
> On Tue, Apr 25, 2017 at 4:43 PM, Ran Bi  wrote:
>>
> Does client need the same ssl context?
>>>
>> On Tue, Apr 25, 2017 at 1:52 PM Eric Anderson  wrote:
>>>
>> Make a KeyManagerFactory for the JKS and then pass it to gRPC with 
 something like this:

 NettyChannelBuilder.forPort(0)
 
 .sslContext(GrpcSslContexts.configure(SslContextBuilder.forServer(keyManagerFactory)).build())
 .build();

 SslContextBuilder is from Netty.

 On Tue, Apr 25, 2017 at 11:55 AM, ran.bi via grpc.io <
 grp...@googlegroups.com> wrote:

> Hi
>
> Does anyone know how to use  JKS (Java KeyStore) file rather than key 
> + cert for grpc-java ssl encryption?
>
>
> -- 
> You received this message because you are subscribed to the Google 
> Groups "grpc.io" group.
>
 To unsubscribe from this group and stop receiving emails from it, send 
> an email to grpc-io+u...@googlegroups.com.


> To post to this group, send email to grp...@googlegroups.com.
> Visit this group at https://groups.google.com/group/grpc-io.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/grpc-io/6445ec80-4098-488a-8459-956b55a72fe0%40googlegroups.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "grpc.io" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/grpc-io/cRPysB5AcMU/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> grpc-io+u...@googlegroups.com.
>
>
>> To post to this group, send email to grp...@googlegroups.com.
>> Visit this group at https://groups.google.com/group/grpc-io.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/grpc-io/CA%2B4M1oPNms3dp3jpFrRGGneNGGMHtdGts1DHP9f4BfZQ_u-AWw%40mail.gmail.com
>>  
>> 
>> .
>
>
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/77bb9d45-1cf4-4c1e-9390-6af4a3779fe8n%40googlegroups.com.


[grpc-io] Re: Trouble with java quickstart for grpc: unable to locate branch 1.6.1

2017-09-18 Thread Jeff Gaer

I was able to download the tar.gz file of the source and get it to build. 
Not sure why git was not working for me. 

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To post to this group, send email to grpc-io@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/992fcd1c-0fe7-4c8a-8312-24ed506d370a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[grpc-io] Re: Trouble with java quickstart for grpc: unable to locate branch 1.6.1

2017-09-18 Thread Jeff Gaer
I get the same result with 1.6.1. I had tried the 1.6.2 just as a guess 
along with a variety of other versions. Sorry that I posted the wrong 
command line when I asked the questions. I'm guessing it is a git config 
issue, but I don't have a clue on where to look. There is not of lot of 
content in my gitconfig so I assume I am running with mostly defaults. 


jgaer@ljgaer1_/data/grpc: git clone -b v1.6.1  
https://github.com/grpc/grpc-java
Initialized empty Git repository in /data/grpc/grpc-java/.git/
remote: Counting objects: 52663, done.
remote: Compressing objects: 100% (30/30), done.
remote: Total 52663 (delta 7), reused 22 (delta 1), pack-reused 52621
Receiving objects: 100% (52663/52663), 17.75 MiB | 694 KiB/s, done.
Resolving deltas: 100% (21774/21774), done.
warning: Remote branch v1.6.1 not found in upstream origin, using HEAD 
instead

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To post to this group, send email to grpc-io@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/cacb50a1-7287-4627-ab0c-d680ee270b67%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.