iOS Developer Certificate and Mobile Provision work on Windows but not OSX

Last comment doesn’t work either. Followed it to the letter. Got the error “object reference not set to the instance of an object”.