Add gem build tasks
fix certificate validation