«CN=Andrey Chesnokov, OU=dev64, O=dev64-wordpress, L=Unknown, ST=Unknown, C=RU»
«C=RU, PostalCode=115093, S=Moscow, L=Moscow, STREET="Street Serpukhovsko B, 44", O=RIVER SOLUTIONS, CN=RIVER SOLUTIONS»
cert2spc.exe certificate.cer certificate.spc
pvk2pfx.exe -pvk key.pvk -pi "password" -spc certificate.spc -pfx certificate.pfx -po "password"
openssl.exe pkcs12 -in certificate.pfx -nocerts -out encrypted.key
openssl.exe pkcs12 -in certificate.pfx -clcerts -nokeys -out certificate.cer
openssl.exe rsa -in encrypted.key -text -out decrypted.key
openssl x509 -outform der -in certificate.pem -out certificate.der
openssl crl2pkcs7 -nocrl -certfile certificate.cer -out certificate.p7b -certfile CACert.cer
openssl pkcs12 -export -out certificate.pfx -inkey privateKey.key -in certificate.crt -certfile CACert.crt
openssl x509 -inform der -in certificate.cer -out certificate.pem
openssl pkcs7 -print_certs -in certificate.p7b -out certificate.cer
openssl pkcs7 -print_certs -in certificate.p7b -out certificate.cer
openssl pkcs12 -export -in certificate.cer -inkey privateKey.key -out certificate.pfx –certfile CACert.cer
openssl pkcs12 -in certificate.pfx -out certificate.cer –nodes
SV "file.exe"
SigCheck "file.exe"
SignTool verify /v /pa "file.exe" (для проверки Authenticode-подписи)
SignTool verify /v /kp "file.sys" (для проверки подписи драйвера)
signtool.exe sign /fd SHA256 /f "certificate.pfx" /p "password" /td SHA256 /tr "%timestamp%" /as "file.exe"
Private Function VerifySecondarySign(sFile As String) As SignResult_TYPE
Dim SignResult As SignResult_TYPE
' we should disable checking by catologue, because in that case number of signatures will be unavailable
SignVerify sFile, SV_DisableCatalogVerify, SignResult
If (SignResult.NumberOfSigns > 1) Then
SignVerify sFile, SV_CheckSecondarySignature, VerifySecondarySign
End If
End Function
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?