Sixtease has asked for the wisdom of the Perl Monks concerning the following question:
this is a general web-programming question
Dear monks,
Assume web application Example.com has no ssl certificate and doesn't want one. But would still like to share a secret with the visitor
Q1: Do you see a way to exchange such a secret during OpenID login?
Assuming the OpenID provider uses ssl.
Q2: If it is not possible (like I think), what other ways do you see?
My idea is to start a dedicated, open web service, that will have an SSL certificate, and will let the client share a secret with specified service. A Catalyst controller could look like this:
sub index :Private { my ($self, $c) = @_; my $secret = random_string(); my $other_side = $c->req->params->{other_side}; my $res = $lwp_ua->get("$other_side?secret=$secret"); if ($res->is_success) { $c->response->body($secret); } }
Ideas? Does this already exist? Sorry for posting such a non-Perl-specific question / rambling.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: sharing secret without ssl
by moritz (Cardinal) on Feb 11, 2011 at 13:21 UTC | |
by Sixtease (Friar) on Feb 11, 2011 at 13:22 UTC |