There is a couple of thing to consider, like where you are storing your CRL etc.
But in general you can follow this procedure:
http://www.cisco.com/c/en/us/support/docs/ios-nx-os-software/ios-software-releases-124-mainline/82153-backup-restore-ios-ca.html
it's dated but close enough to today's syntax.