Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 499583
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T06:00:01+00:00 2026-05-13T06:00:01+00:00

Using Java 1.4.2 with unlimited jurisdiction policy files installed. I have a class that

  • 0

Using Java 1.4.2 with unlimited jurisdiction policy files installed.

I have a class that has been successfully signing and verifying. However, now I’ve changed the keys and suddenly verification is failing.

Keys were generated with:

openssl genrsa -aes256 -out production_private.pem 2048
openssl pkcs8 -topk8 -nocrypt -in production_private.pem -outform der -out production_private.der
openssl rsa -in production_private.pem -pubout -outform DER -out production_public.der

I did do a verification using the PEM keys and openssl using:

openssl dgst -sha1 -sign production_private.pem -out test.txt.sha1 test.txt
Enter pass phrase for production_private.pem:
openssl dgst -sha1 -verify production_public.pem -signature test.txt.sha1 test.txt
Verified OK

But it does not appear you can do that using DER keys.

No errors are thrown. Signature.verify just returns false. Since it works with one set of keys and not another, my assumption is it must be a key problem of some kind.

Any additional thoughts on how I might verify that the keypair is correct? I don’t want to kill myself looking for coding errors just to find out that the keys were the source of the problem.

I am happy to share source upon request – I just don’t want to muddy the issue until necessary.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T06:00:01+00:00Added an answer on May 13, 2026 at 6:00 am

    Turned out to be totally unrelated. DB procedure was corrupting the key value.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using Java (1.6) I want to split an input string that has components of
Using Java, how can I detect all of the browsers that are installed on
When using java threads, one has to take care of the basic problems that
Using Java, I have a method which I'm calling with method.invoke that returns a
(Using Java) I am implementing a generic class which is a B-Tree. When the
When using java.util.logging, the log level for a specific class (i.e. for a child
Using Java have the source code of a webpage stored in a string. I
using java.nio one has to register interest in operations via the SelectableChannel: SelectionKey =
Using java, I am writting a script to anchor link an html bibliography. That
I have written some (functional) AES encryption code using Java's built in encryption libraries,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.