fix cert serving