You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by JhonnyVargas <lo...@gmail.com> on 2020/03/15 16:32:51 UTC

C++ Client - loading certificate from memory

Hi,
Lets say that I have a .pem and a .key loaded in memory as unsigned char
arrays.
How can I load those in a ssl_certificate?
Can you guys provide me with some example code?
Thanks in advance.
Jhonny



--
Sent from: http://qpid.2158936.n2.nabble.com/Apache-Qpid-users-f2158936.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Re: C++ Client - loading certificate from memory

Posted by Alan Conway <ac...@redhat.com>.
Create an "enhancement request" issue at
https://issues.apache.org/jira/projects/PROTON/issues with as much detail
as possible - e.g. proposed API you'd like to see.

If you're feeling adventurous you can have a go at fixing it yourself (but
make an issue anyway as a place to discuss it with the team) It's probably
just a matter of adding an extra method to call the relevant function on
the openssl library which does the work under the covers.

On Tue, Mar 17, 2020 at 5:47 PM JhonnyVargas <lo...@gmail.com> wrote:

> Is it possible to request this feature?
> =)
>
>
>
> --
> Sent from:
> http://qpid.2158936.n2.nabble.com/Apache-Qpid-users-f2158936.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
>
>

Re: C++ Client - loading certificate from memory

Posted by JhonnyVargas <lo...@gmail.com>.
Is it possible to request this feature?
=)



--
Sent from: http://qpid.2158936.n2.nabble.com/Apache-Qpid-users-f2158936.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Re: C++ Client - loading certificate from memory

Posted by Justin Ross <jr...@redhat.com>.
Based on my reading of the API docs, I don't see anything that makes me
believe this is currently possible:

http://qpid.apache.org/releases/qpid-proton-0.30.0/proton/cpp/api/classproton_1_1ssl.html
http://qpid.apache.org/releases/qpid-proton-0.30.0/proton/cpp/api/classproton_1_1ssl__certificate.html
http://qpid.apache.org/releases/qpid-proton-0.30.0/proton/cpp/api/classproton_1_1ssl__client__options.html
http://qpid.apache.org/releases/qpid-proton-0.30.0/proton/cpp/api/classproton_1_1ssl__server__options.html

http://qpid.apache.org/releases/qpid-proton-0.30.0/proton/cpp/api/ssl_8hpp_source.html

On Mon, Mar 16, 2020 at 7:32 AM Gordon Sim <gs...@redhat.com> wrote:

> Justin, Andrew, Cliff,
>
> Can any of you provide some information on this?
>
> Thanks!
>
>

Re: C++ Client - loading certificate from memory

Posted by Gordon Sim <gs...@redhat.com>.
Justin, Andrew, Cliff,

Can any of you provide some information on this?

Thanks!


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Re: C++ Client - loading certificate from memory

Posted by JhonnyVargas <lo...@gmail.com>.
Yes, it is. 



--
Sent from: http://qpid.2158936.n2.nabble.com/Apache-Qpid-users-f2158936.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Re: C++ Client - loading certificate from memory

Posted by Gordon Sim <gs...@redhat.com>.
On 15/03/2020 4:32 pm, JhonnyVargas wrote:
> Hi,
> Lets say that I have a .pem and a .key loaded in memory as unsigned char
> arrays.
> How can I load those in a ssl_certificate?
> Can you guys provide me with some example code?
> Thanks in advance.
> Jhonny

Which client API are you using? Is it proton?


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org