An Accra circuit has slapped a 10-year jail term on the man who was arrested for possessing a gun at the church of President John Mahama last Sunday.
The court passed the judgment after Charles Antwi, 36, confessed to a plot to assassinate the President and his family.
He also told the court that he purchased the gun he intended to use for his crime from a Burkinabe in the Brong Ahafo region.
The court, presided over by Justice Francis Obiri, ruled that the convict was sane and capable of carrying out the attack.
He had no legal representation.
Antwi was apprehended when a member of the congregation noticed his nervous and suspicious behaviour during the church service last Sunday.
According to the security source, a policeman and a member of the church escorted Antwi outside.
The loaded and cocked pistol was found following a search on him.
It was not immediately clear why he had carried the fully loaded gun into the church.
President John Dramani Mahama and his family worship regularly at the Ringway Gospel Centre but were not present in church last Sunday.