OAuth2 vs SSL

I see that OAuth2 is becoming more and more the standard for web services but they’re quite complex to write software around.

Wheras SSL keys seem to already seem to solve the problem of not sharing passwords. For instance GitHub is an example of this.

How many people are writing web services that have opted for OAurh2 and any particular reason you chose that rather than SSL keys?