Stdlib compat

This is missing tests and documentation but I'd like to get some comments on it. 
`ipAddress` is `IP Address` in `getpeercert()`. I generated a cert with `openssl` to test that particular case. It *appears* (I'll try to confirm this) that `othername` is only for SRV-ID.