Setting up certificate