Looking for suggestions/help on how i can push the following commands to all my routers automatically where script automatically grabs the router hostname "fqdn HOSTNAME.mydomain.com" and pushed the following commands and also authenticate and enroll to the new CA.
crypto pki trustpoint testca
enrollment url http://testcacert.com:80
serial-number none
fqdn HOSTNAME.mydomain.com
revocation-check crl
rsakeypair Hostname 2048 2048
crypto ikev2 profile IKeINET2PROFILE
match fvrf INET2
match identity remote address 0.0.0.0
authentication remote rsa-sig
authentication local rsa-sig
pki trustpoint testca
crypto pki authenticate testca
!! wait for 15 sec
!! Type Yes and hit Enter
crypto pki enroll testca
! Hit Enter three times
Hit Enter
Hit Enter
Hit Enter
! type Yes and hit Enter
Yes
exit
wr mem