How to export pvk files
Therefore, if you want to convert a dual certificate file. Pvk and. Spc to a certificate file. Pfx format, so as to simplify the signature process and facilitate the import into USB Key to achieve more secure signature management. Please refer to this conversion guide. However, some users may need to use the command line to implement code signing, that is, they need to convert the signing certificate file in. The pfx format is converted into two signed certificate files. Pvk and. spc。 Please also refer to the conversion guide. 1. Converted from. Pvk and. The spc format is. Pfx format (1), download Microsoft's conversion tool software: pvkimprt.rar, successfully installed; (2) Please confirm that the intermediate root certificate issued by code signing certificate has been installed on your computer. If not, please click Install: WoSign code signing Intermediate Root Certificate and Cross-signed Root Certificate. (3) In the DOS state, enter the directory where two signature certificate files, mycert.pvk and mycert.spc, are saved. Please type the command: pvkimprt mycert.spc mykey.pvk Enter the private key password as prompted, and then start the certificate import process. Press Enter multiple times to successfully import the certificate into the Windows certificate store. You can see your signed certificate in Tools-Internet Options-Contents-Certificates-Personal in IE browser, and then click Export to get the signed certificate. Please note that "If possible, include all certificates in the certificate path" should be selected when exporting, and it is recommended to select "Delete key after successful export" to prevent others from exporting illegally. If you still need to import, you can import again. At this point, the default value of import is "Do not export the private key", thus ensuring the security of the signing certificate. Please note that the pvkimprt tool does not support cross-operating systems, that is, if you generate a private key file. On the Windows 2000 operating system, only the pvkimprt tool in the Windows 2000 operating system can be used. You can also use this tool to modify the password of the private key file. Pvk of signing certificate. You only need to detach the private key file. Pvk and public key file. Spc of certificate file in. Pfx format. Please refer to the following conversion guide. 2. Convert from. Pfx format is converted to. Pvk and. Spc format 1. You need to use OpenSSL to realize format conversion. If there is no OpenSSL, you need to download and install an OpenSSL Win32 package. 2. Extract private key intermediate format file (. Key) From the PFX format file, assume that the installation directory of OpenSSL is: c: \ program file \ GNU win32, and the directory of PFX format file is: c:\cert\mycert.pfx, and type: cd \ program files \ GNU Win32 \ bin OpenSSL PKCs12-in mycert. PFX- Nocetz-Node-exit mycert.key will prompt for the password. Pfx certificate file, which is the password set when exporting pfx backup file from IE. After entering the password, you will be prompted with "MAC verification OK", indicating that the extraction is successful. 3. Use pvk.exe to convert files. The key format is. In pvk format, download pvk.exe to the directory of c:\cert, and type: pvk-in mycert. The key is pvk-out mycert. In DOS state, pvk will prompt you to enter the password, and then enter the password again to complete the conversion. 4. Export or download the intermediate root certificate and cross-signature root certificate of WoSign code signing from IE, and export your code signing certificate public key mycert.cer, and choose Base64 encoding format when exporting. 5. Use the cert2spc.exe in the signature toolkit to generate the software distribution certificate. Spc format file, download signature toolkit, and type: cert2spcclass3code. CRT CA 1 _ XS 1。 CRT maixite Cermycert.spc is in DOS state, and it will prompt success, indicating that the spc file was generated successfully. In this way, the files of mycert.pvk and mycert.spc are successfully obtained from mycert.pfx, and the files are downloaded from. Format the certificate file as. Pvk and. The certificate file in spc format is realized.