--- loncom/lonssl.pm 2004/06/17 10:15:46 1.9 +++ loncom/lonssl.pm 2014/11/06 02:22:11 1.11 @@ -1,5 +1,5 @@ # -# $Id: lonssl.pm,v 1.9 2004/06/17 10:15:46 foxr Exp $ +# $Id: lonssl.pm,v 1.11 2014/11/06 02:22:11 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -146,7 +146,7 @@ sub PromoteClientSocket { SSL_user_cert => 1, SSL_key_file => $KeyFile, SSL_cert_file => $MyCert, - SSL_ca_fie => $CACert); + SSL_ca_file => $CACert); if(!$client) { $lasterror = IO::Socket::SSL::errstr(); @@ -199,7 +199,7 @@ sub PromoteServerSocket { SSL_user_cert => 1, SSL_key_file => $KeyFile, SSL_cert_file => $MyCert, - SSL_ca_fie => $CACert); + SSL_ca_file => $CACert); if(!$client) { $lasterror = IO::Socket::SSL::errstr(); return undef; @@ -273,8 +273,8 @@ sub CertificateFile { # Build the actual filenames and check for their existence and # readability. - my $CaFilename = $CertificateDir.$pathsep.$CaFilename; - my $CertFilename = $CertificateDir.$pathsep.$CertFilename; + $CaFilename = $CertificateDir.$pathsep.$CaFilename; + $CertFilename = $CertificateDir.$pathsep.$CertFilename; if((! -r $CaFilename) || (! -r $CertFilename)) { $lasterror = "CA file $CaFilename or Cert File: $CertFilename " @@ -314,7 +314,7 @@ sub KeyFile { # Build the actual filename and ensure that it not only exists but # is also readable: - my $KeyFilename = $CertificateDir.$pathsep.$KeyFilename; + $KeyFilename = $CertificateDir.$pathsep.$KeyFilename; if(! (-r $KeyFilename)) { $lasterror = "Unreadable key file $KeyFilename"; return undef;