Configure SPI on other digital pins?

Hi guys,
I have an issue to command my CAN bus board with another SS pin. I chose the digitale pin 24 as output (for example) and the code is something like that:

-digitalWrite(24,LOW); -> to enable the bus for that shield
-send various messagges
-digitalWrite(24,HIGH); ->to disable the bus for that shield

This strategy does not work, there is someone that can help me please.

Thanks