开发者

JAVA - Creating X509 certificate from byte array

开发者 https://www.devze.com 2023-01-09 06:19 出处:网络
my server application send a certificate (by an array of byte) to the client who have to recreate the original certificate usingthe byte[] array.

my server application send a certificate (by an array of byte) to the client who have to recreate the original certificate using the byte[] array. How can i do this?

If i use the certificateFactory i can only pass by parameter an InputStream, which is not what i need.

Anybody can help me?

Thank you in advance开发者_开发技巧


Going from a byte[] to an InputStream is easy - just wrap the array in a ByteArrayInputStream. If you've tried that and it didn't work, please provide more information.

0

精彩评论

暂无评论...
验证码 换一张
取 消