Posts Tagged ‘Mac OS X 10.5’

Safari 5.1 in OS X 10.7 Lion & Self-Signed Certificates

I recently installed the developer preview of Mac OS X 10.7 Lion and have been quite pleased with the update. However, apart from the AFP issue, which was quickly fixed, and the Time Machine issue, which remains unsolved, it appears that Safari 5.1 does not like self-signed certificates!

Safari can’t open the page. Safari can’t open the page “https://example.org/”. The error is: “The certificate for this server is invalid. You might be connecting to a server that is pretending to be “example.org” which could put your confidential information at risk.” (NSURLErrorDomain:-1202) Please choose Safari > Report Bugs to Apple, note the error number, and describe what you did before you saw this message.

The certificate for this server is invalid. (NSURLErrorDomain:-1202)

Fortunately, there is a way to force Safari 5.1 to accept self-signed certificates. Now I know one could dump the certificate via openssl and the command line, but this method did not work for me since I am accessing my sites on an internal network and it would always dump the certificate for my default Apache virtual host. As such, the instructions below use a sort of round about method to import these certificates, but it works.

Basically these instructions show you how to use Firefox to export a self-signed SSL certificate and import it into Keychain Access. Hopefully it helps a few people out.

Read more

Linux Printer Sharing With Mac OS X 10.5, Leopard

After upgrading to Apple’s Mac OS X 10.5, I found that my printers no longer existed. So I went to http://localhost:631 and tried adding my Gentoo CUPS printer share like I did before, but it refused to show up in the printers list. :(

After some searching on the net, it seems that Apple has somewhat broken the way that it deals with Linux CUPS shares. Apparently it only searches for printers via Bounjour. In any case, I found a fix that works perfectly. Alessandro Dellavedova posted a fix for the problem over on the Apple support forums. Below is a slightly more detailed version of what he did.

WARNING: You will need administrator privileges to proceed with this fix.

  1. Open System Preferences.
  2. Open Print & Fax.
  3. Right-click in the printer’s pane and select “Reset printing system…”
  4. Open Terminal and type the following:sudo nano /etc/cups/cupsd.conf
  5. Modify the first few lines such that they look similar to the following:Browsing On
    BrowseOrder allow,deny
    BrowseAllow all
    BrowseProtocols all
    BrowseRemoteProtocols all
    BrowsePoll <Your CUPS Server domain or IP>:631
    BrowsePort 631
  6. Save the file
  7. Restart the printing subsystem by typing in the following:sudo killall -HUP cupsd

Now you should be able to see and add the printers on your Linux share.

Return top

Contact Information

Steffen L. Norgren
Bio: Lonely Gay Geek

+1 778 889 4498
email | AIM | MSN | Yahoo | Twitter