Use certutil to generate, import, and export certificates. Read "About the CertUtil Utility" for more information on how to do this.
See also: