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 8486343
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T20:55:13+00:00 2026-06-10T20:55:13+00:00

My Task: I have a Java Application that writes text files. These files should

  • 0

My Task:

I have a Java Application that writes text files.
These files should be signed with RSA/SHA1 by the application in order to guarantee that they are not changed during or after transport.

My first Idea was to append a “RSA Signature Block” at the end of the text file. But I found no information on how this block would have to be formated to be able to verify the file with a standard tool (OpenSSL?)

After searching the web for some hours I have the impression that the standard would be to write a file with an appended .rsa extension. (Say we have a Order123.txt we generate a file “Order123.txt.rsa”)
However I found no information on the format of these files.

The only thing I found are several links that there are .rsa files and that they can be opened with openssl, e.g:
http://file.downloadatoz.com/rsa-file-extension.html

Furthermore http://download.java.net/jdk8/docs/technotes/guides/jar/jar.html talks about “META-INF/*.RSA” Files:

A digital signature is a signed version of the .SF signature file.
These are binary files not intended to be interpreted by humans.

Digital signature files have the same filenames as the .SF files but
different extensions. The extension varies depending on the type of
digital signature.

.RSA (PKCS7 signature, SHA-256 + RSA)

So it seems to be a binary format…

Can somebody explain the format of an RSA file?
And maybe how to write this format preferably in Java?
(Assuming that the public/private key is in the keystore)

  • 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-06-10T20:55:15+00:00Added an answer on June 10, 2026 at 8:55 pm

    These files are PKCS#7 formatted signature files. Very common and virtually all S/Mime toolchains can create these. See for example

    http://www.cis.upenn.edu/~bcpierce/courses/629/jdkdocs/tooldocs/win32/javakey.html

    and note that this can be used for arbitrary files.

    Bouncy castle http://i-proving.com/2007/09/21/pkcs7-signatures-using-bouncy-castle/, Java implementation of C# SignedCms
    and http://www.jensign.com/JavaScience/javacrypto/index.html are some examples.

    A more limited version which needs no extra sundry: https://security.stackexchange.com/questions/13910/pkcs7-encoding-in-java-without-external-libs-like-bouncycastle-etc may be of use.

    Dw.

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

Sidebar

Related Questions

I have a task to make an application that will connect Java with SQL
I have task involving reading SAS .xpt files using .NET. For that I'm using
I have been writing a small java application (my first!), that does only a
I'm building a Java application with a Swing GUI and a task that takes
I have a java web application based on Spring MVC. The task is to
i have to write small java database application with several tables. With that i
I have an application in C# that I am converting to Java, specifically the
I have a web application that makes use of a Spring TaskExecutor. The task
I have an application that uses several configuration files (let just consider appli.properties here).
We have a cross platform application that is written in Java and built with

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.