Letractively / rubycas-server

Automatically exported from code.google.com/p/rubycas-server
GNU Lesser General Public License v2.1
0 stars 0 forks source link

rubycas-server on Debian etch installation #45

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi, i try to migrate from rubycas-server 5.1 to 6 and i have some questions.

First which version of rubygems is needed with version 0.9.5 picnic has a
LoadError Warning it seem's that rubygems 1.1.0 is better.

Do I use the setup.rb file to install the stuff ?

Second, when I finally remove bugs the https:// url don't work the CAS is
accessible only at http://<domain>:<port> (with https://Erreur code -12263)
is it normal ?

Original issue reported on code.google.com by mrt...@gmail.com on 20 May 2008 at 6:51

GoogleCodeExporter commented 8 years ago
I'm using rubygems 1.0.1 here, so it will probalby work best with rubygems > 
1.0. 

I do not use setup.rb to install anything. Just doing `gem install 
rubycas-server`
should be enough to install everything. I've done this on a clean machine 
without any
problems.

Regarding the https problem -- someone else reported the same issue. 
Double-check
that you have ruby's openssl extensions installed. In the meantime I'll look 
back and
see if we previously found some other resolution.

Original comment by matt.zuk...@gmail.com on 21 May 2008 at 2:44

GoogleCodeExporter commented 8 years ago
Hi, when i test this little script the https run ok.
So I think that it will come from rubycasserver.

Can you say me when you setup the https in rubycas-server.

#!/usr/local/bin/ruby

require 'webrick'
require 'webrick/https'
require 'openssl'

pkey = cert = cert_name = nil
begin
  pkey = OpenSSL::PKey::RSA.new(File.open("/etc/rubycas-server/server.key").read)
  cert = OpenSSL::X509::Certificate.new(File.open("/etc/rubycas-server/server.pem").read)
rescue
  $stderr.puts "Switching to use self-signed certificate"
  cert_name = [ ["C","JP"], ["O","WEBrick.Org"], ["CN", "WWW"] ]
end

s=WEBrick::HTTPServer.new(

  :Port             => 8080,
  :Logger           => WEBrick::Log::new($stderr, WEBrick::Log::DEBUG),
  :DocumentRoot     => "/htdocs",
  :SSLEnable        => true,
  :SSLVerifyClient  => OpenSSL::SSL::VERIFY_NONE,
  :SSLCertificate   => cert,
  :SSLPrivateKey    => pkey,
  :SSLCertName      => cert_name
)
s.start

Thanks
Regards

MrT

Original comment by mrt...@gmail.com on 24 May 2008 at 3:39

GoogleCodeExporter commented 8 years ago
Okay I think I got it. I've released a new version of Picnic (0.6.4) that 
should fix
this.

You can upgrade just by running `gem install picnic`. After that RubyCAS-Server 
0.6
should work fine again with Webrick and SSL.

Thanks for taking the time to debug this for me.

Original comment by matt.zuk...@gmail.com on 26 May 2008 at 5:08