Please quote where the Catholic Church teaches the above.
From the Catechism of the Catholic Church:
553 Jesus entrusted a specific authority to Peter: "I will give you the keys of the kingdom of heaven, and whatever you bind on earth shall be bound in heaven, and whatever you loose on earth shall be loosed in heaven."287 The "power of the keys" designates authority to govern the house of God, which is the Church. Jesus, the Good Shepherd, confirmed this mandate after his Resurrection: "Feed my sheep."288 The power to "bind and loose" connotes the authority to absolve sins, to pronounce doctrinal judgments, and to make disciplinary decisions in the Church. Jesus entrusted this authority to the Church through the ministry of the apostles289 and in particular through the ministry of Peter, the only one to whom he specifically entrusted the keys of the kingdom.
567 The kingdom of heaven was inaugurated on earth by Christ ... The Church is the seed and beginning of this kingdom. Its keys are entrusted to Peter.
881 The Lord made Simon alone, whom he named Peter, the "rock" of his Church. He gave him the keys of his Church and instituted him shepherd of the whole flock
936 The Lord made St. Peter the visible foundation of his Church. He entrusted the keys of the Church to him
1444 In imparting to his apostles his own power to forgive sins the Lord also gives them the authority to reconcile sinners with the Church. This ecclesial dimension of their task is expressed most notably in Christ's solemn words to Simon Peter: "I will give you the keys of the kingdom of heaven, and whatever you bind on earth shall be bound in heaven, and whatever you loose on earth shall be loosed in heaven." "The office of binding and loosing which was given to Peter was also assigned to the college of the apostles united to its head."
981 After his Resurrection, Christ sent his apostles "so that repentance and forgiveness of sins should be preached in his name to all nations." The apostles and their successors carry out this "ministry of reconciliation," not only by announcing to men God's forgiveness merited for us by Christ, and calling them to conversion and faith; but also by communicating to them the forgiveness of sins in Baptism, and reconciling them with God and with the Church through the power of the keys, received from Christ:
[The Church] has received the keys of the Kingdom of heaven so that, in her, sins may be forgiven through Christ's blood and the Holy Spirit's action. In this Church, the soul dead through sin comes back to life in order to live with Christ, whose grace has saved us.
983 Catechesis strives to awaken and nourish in the faithful faith in the incomparable greatness of the risen Christ's gift to his Church: the mission and the power to forgive sins through the ministry of the apostles and their successors:
The Lord wills that his disciples possess a tremendous power: that his lowly servants accomplish in his name all that he did when he was on earth.
979 In this battle against our inclination towards evil, who could be brave and watchful enough to escape every wound of sin? "If the Church has the power to forgive sins, then Baptism cannot be her only means of using the keys of the Kingdom of heaven received from Jesus Christ. The Church must be able to forgive all penitents their offenses, even if they should sin until the last moment of their lives."
From the Catholic Encyclopedia:
"Christ by employing this expression ("the keys of the kingdom of heaven") clearly designed to signify his intention to confer on St. Peter the supreme authority over His Church."
"Christ's words ('And I will give you the keys of the kingdom of heaven') are a promise that He will confer on Peter supreme power to govern the Church. Peter is to be His vicegerent, to rule in His place."
"Christ has made His Church to be infallible in the exercise of her doctrinal authority."
" the reunion Council of Florence (1438-1445), repeating what had been substantially contained in the profession of faith of Michael Palaeologus approved by the Second Council of Lyons (1274), defined "that the holy Apostolic see and the Roman pontiff holds the primacy over the whole world; and that the Roman pontiff himself is the successor of the blessed Peter Prince of the Apostles and the true Vicar of Christ, and the head of the whole Church, and the father and teacher of all Christians, and that to him in blessed Peter the full power of feeding, ruling and governing the universal Church was given by our Lord Jesus Christ""