System environment: Win Server 2016Backup software: NBU 8.1Case:windows system default automatic installation system patches, restart the process of automatic update, after the latest patch, NBU Java Console can not start, reported the following error, prompt certificate issues, click "YES", reported the second errorA second errorSolution:
Processmonitor Capture Package Confirmation NBU Certificate Road has refused to error, for the file to empower the operation, can be logged in, but direct
is lv_certlist, which has two columns: the name of the certificate holder and the issuer.
Dim cert As X509Certificate
Dim lvitem As ListViewItem
'Open the personal certificate library from the current user certificate store
Certstore = X509CertificateStore. CurrentUserStore (X509CertificateStore. MyStore)
Certstore. Open ()
Lv_certlist.Items.Clear ()
'Print the certificate and write it to the listview cont
1. Install the certificate:Manually double-click the certificate to install the process slightly2. Assigning Permissions:Locate the installed certificate in the console, right-select Manage private key,Add the permissions you need if you can add everyone directly in the test3. Modify code: public static string Refund (string urlwithparams){servicepointmanager.expect100continue=true; Servicepointmanager.securityprotocol= Securityprotocoltype.tls;//protocol on Demand, no, just try it all over aga
dotnetchina. PVK-n "cn = dotnetchina.com.cn"-B 01/01/2006-e 01/01/2008 dotnetchina. Cert
Note:-SV dotnetchina. PVKExport the private keyDotnetchina. PVKIn this file, so that we can use-N "cn = dotnetchina.com.cn"Specify the Certificate Name-B 01/01/2006Specify the certificate start date01/01/2006-E 01/01/2006Specify the end date of this certificate01/01/2008Dotnetchina. CertStore the generated Certificate in this file, including the Public Key/Privat
;
E.printstacktrace ();
System.out.println ("Failed to verify digital signature");
}
return verifyret;
}
2, through the Bouncycastle Cmssigneddata can realize the PKCS#7 format signature data verification, the use Cmssigneddata generates the PKCS#7 format signature data. Since the pkcs#7 contains the original text and the certificate information, the parameter only needs the signature value. The code is as follows:
public boolean signeddata_verify (byte[] signeddata) {
Boolean Verifyret = true;
Contact Us
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.