Activation without internet access

If you need to license software on a server that is kept in a secure environment with no access to the internet, is there a way to import / export the codes needed to/from another machine to activate that server?