| 12345678910111213141516171819 |
- import cn.start.tz.module.pressure.util.SignP7;
- import org.apache.rocketmq.client.exception.MQClientException;
- import org.junit.Test;
- public class TestSfsSign {
- @Test
- public void testSign() {
- try {
- String pfxFile = "classpath:SFS.pfx";//省非税证书文件
- String pwd = "661209";//661209 123456
- String orgData = "1234567890";
- String signValue = SignP7.p7Sign(pfxFile, orgData.getBytes("GBK"), pwd);
- System.out.println(signValue);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
- }
|