Questions

How can I use self-signed certificate to encrypt the java spring request message?

I'm having trouble encrypting a message in Java Spring (Spring Boot) using trusted self-signed certificate. I have built an app which sends a message to a target service. I've been provided with a certificate for Message Level Security which I added to the keystore. The app reads the keystore and tries to encrypt the message using the certificate but I'm getting an error during sending of the request saying "Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.IllegalArgumentException: not an RSA key!] with root cause java.lang.IllegalArgumentException: not an RSA key!"

3answers

Your best bet is to go on the Java discussion board for this type of question.


Answered 7 years ago

You can't use a DSA for RSA encryption. They operate in entirely different ways, instead generate an RSA key and use that. PM me if you have trouble.


Answered 7 years ago

Investigate Letsencrypt + post your question to their forums.

Likely their free SSL certificate signing system can be used in your case.


Answered 7 years ago

Unlock Startups Unlimited

Access 20,000+ Startup Experts, 650+ masterclass videos, 1,000+ in-depth guides, and all the software tools you need to launch and grow quickly.

Already a member? Sign in

Copyright © 2024 Startups.com LLC. All rights reserved.