string app_cert_sn=alipaysignature.getcertsn("应用公钥证书绝对路径");
system.out.println("app_cert_sn:" app_cert_sn);
//调用getcertsn获取应用公钥证书序列号
$aop = new aopcertclient();
$appcertpath = "应用公钥证书绝对路径";
//输出对应的应用公钥证书序列号值echo '应用公钥证书序列号'.$appcertsn;
$appcertsn = $aop->getcertsn($appcertpath);
string appcertpath = "应用公钥证书绝对路径";
//解析应用证书序列号,需要引用using org.bouncycastle.x509和using aop.api.util;
x509certificate appcert = antcertificationutil.parsecert(file.readalltext(appcertpath));
string appcertsn = antcertificationutil.getcertsn(appcert);
console.writeline("应用证书序列号" appcertsn);