I think what you are saying is that the NT doesn’t name the soldier as a centurian. However tradition appears to make this identification and seems to name him as Saint Longinus.
It’s rather confusing since as in many other cases there are contradictory traditions: sometimes the soldier who spears Jesus is treated as distinct from the
centurio (‘hexachontarch’) who confesses Jesus, while at other times they are conflated with one another.
Let’s take for example the so-called
Acts of Pilate, the first part of which has three
main recensions: an earlier version (Recension A), a later reworking (Recension B), and a Latin version. In Recension A and in the Latin form, the centurion is not named, and the soldier who pierces Jesus’ side (named
Longinus) is clearly a separate character.
First Greek Form: And it was about the sixth hour, and there was darkness over the land until the ninth hour, for the sun was darkened: and the veil of the temple was rent asunder in the midst. And Jesus called with a loud voice and said: Father,
baddach ephkid rouel, which is interpreted: Into thy hands I commend my spirit. And having thus said he gave up the ghost.
And when the centurion saw what was done, he glorified God, saying: This man was righteous. And all the multitudes that had come to the sight, when they beheld what was done smote their breasts and returned. (11.1)
Then said Annas and Caiaphas: Ye have well said those things which are written in the law of Moses, that no man saw the death of Enoch, and no man hath named the death of Moses. But Jesus spake before Pilate, and we know that we saw him receive buffets and spittings upon his face, and that the soldiers put on him a crown of thorns and that he was scourged and received condemnation from Pilate, and that he was crucified at the place of a skull and two thieves with him, and that they gave him vinegar to drink with gall, and** that Longinus the soldier pierced his side with a spear**, and that Joseph our honourable father begged his body, and that, as he saith, he rose again, and that (lit. as) the three teachers say: We saw him taken up into heaven, and that Rabbi Levi spake and testified to the things which were spoken by Rabbi Symeon, and that he said: Behold this child is set for the fall and rising again of many in Israel and for a sign spoken against. (16.7)
===
Latin: And it was about the sixth hour, and there was darkness over the whole earth; and the sun was obscured, and the veil of the temple was rent in the midst. And crying out with a loud voice, He said: Father, into Your hands I commend my spirit. And thus saying, He gave up the ghost.
And the centurion, seeing what was done, glorified God, saying: This was a just man. And all the people who were present at that spectacle, seeing what was done, beating their breasts, returned. (11.1)
Then Annas and Caiaphas said: Rightly have ye said that these things are written in the law of Moses, that no one saw the death of Enoch, and no one has named the burying of holy Moses. And Jesus gave account to Pilate, and we saw him scourged, and receiving spitting on his face; and the soldiers put a crown of thorns on him, and he received sentence from Pilate; and then he was crucified, and they gave him gall and vinegar to drink, and two robbers were crucified with him, and
the soldier Longinus pierced his side with a lance; and our honourable father Joseph begged his body, and he has risen again, and, as they say, the three teachers have seen him taken up into heaven. And Rabbi Levi has borne witness to what was said by Simeon the elder— that he has been set for the fall and rising again of many in Israel, and for a sign which shall be spoken against. (16.7)
But in Recension B, the name ‘Longinus’ is applied to the centurion.
Then Jesus, crying out with a loud voice, Father, into Your hands I shall commit my spirit, breathed His last. (Luke 23:46) And immediately one could see the rocks rent: for there was an earthquake over all the earth; and from the earthquake being violent and great, the rocks also were rent. And the tombs of the dead were opened, and the curtain of the temple was rent, and there was darkness from the sixth hour till the ninth. And from all these things that had happened the Jews were afraid, and said: Certainly this was a just man.
And Longinus, the centurion who stood by, said: Truly this was a son of God. Others coming and seeing Him, beat their breasts from fear, and again turned back. (Luke 23:44-49) (11.1)
Regardless, the centurian, “doing his duty”, would no doubt have killed Jesus (tortured and killed if you like) by breaking his legs had Jesus been alive when they decided to go home.
I find it difficult to see how this soldier could be considered innocent in the matter as your previous post suggests

. Clearly he would have known who this man reputedly was as all Jerusalem was aware.
I’m not saying that the soldiers were innocent, only that they were less culpable - since it was their
duty, after all. Pilate, on the other hand,…