1

How to send a certificate, which was created from keystore, with specified Provider, and to receive it on another side? I send it like a string in encoded by Base64 format, and cannot to convert it to Certificate, can anyone show how to transmit certificates? I have a file .p12, in Liferay system I should process verification of signed file using certificate, which must be uploaded from my applet to the server, and check sign.

4

1 回答 1

1

您必须将该证书值转换为Base64格式,然后转换为Hex格式,然后您必须将该数据解析到另一端。另一方面,接收该数据,然后转换HexBase64只有您必须处理该值。

如果你不这样做,那么你将不得不面对的问题BadPaddingException

希望这会帮助你。

于 2012-05-11T05:40:59.390 回答