0

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

1 Answer 1

4

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.