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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T03:29:54+00:00 2026-06-15T03:29:54+00:00

I found many answers towards convert from pem to der . However, I cannot

  • 0

I found many answers towards convert from pem to der.

However, I cannot find ways to convert der to pem.

for example, the following codes generates der encoded file pkcs10.cer

public static void main(String[] args) throws Exception
{
    X509Certificate[] chain = buildChain();
    PEMWriter pemWrt = new PEMWriter(new OutputStreamWriter(System.out));
    pemWrt.writeObject(chain[0]);

    FileWriter fwO = new FileWriter("pkcs10.cer");
    fwO.write((chain[0]).toString());

    fwO.close();
    pemWrt.close();

}

Like,
[0] Version: 3
SerialNumber: 1353995641265
IssuerDN: CN=Test Certificate
Start Date: Mon Nov 26 21:54:01 PST 2012
Final Date: Mon Nov 26 21:54:51 PST 2012

However, I don’t know how to make pem encoded Certification from der files.

  • 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-15T03:29:55+00:00Added an answer on June 15, 2026 at 3:29 am

    I’m not a Java developer, and therefore I cannot show you code or point to a class. PEM is just the Base64 encoding of the binary DER, with a standard header and trailer.

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

Sidebar

Related Questions

I have found many great answers to this from a year ago (when it
I have found many answers on this site before however on this subject I
I found many examples of generic repository using LINQ to SQL. However there is
I found many way for redirect to previous page after login and example :
I've found many ways to make the TWebBrowser show a modeless print dialog box,
Although I found many answers and discussions about this question, I am unable to
I've found many answers, here or inside MS' UI guidelines, regarding button positioning, but
I found many answers about similar topics but all refers to PartialViews loaded not
I already found many answers on how to embed a font in a web
In agile manifesto and in many answers here, I found this : Individuals and

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.