https request with checking peer
Steve Davis
steven.charles.davis@REDACTED
Thu Aug 12 01:37:15 CEST 2010
Hi Max,
It seems that ssl:start() isn't synonymous with
application:start(ssl).
You can use ssl:start() or, doing it manually, the public_key
application needs to be started up as well as crypto.
application:start(crypto).
application:start(public_key).
application:start(ssl).
hth
/s
On Aug 11, 3:53 pm, Max Lapshin <max.laps...@REDACTED> wrote:
> Hi!
>
> I need to make https requests to https server and I need to check
> validity of remote server.
> When I type https://.. in browser, it takes somewhere public root
> certificates and checkes server signature.
> How should I do the same in erlang to verify remote server?
>
> > application:start(crypto).
> ok
> > application:start(ssl).
>
> {error,{not_started,public_key}}
>
> Should I carry that server's public key with me, or I need to do
> something else.
>
> I would be very pleased, if someone points me where to read. Erlang
> SSL guide haven't helped me =(
>
> ________________________________________________________________
> erlang-questions (at) erlang.org mailing list.
> Seehttp://www.erlang.org/faq.html
> To unsubscribe; mailto:erlang-questions-unsubscr...@REDACTED
More information about the erlang-questions
mailing list