login about faq

How can I generate a Certificate Signing Request (CSR) file using the Chilkat components?

The CSR is a base64 encoded file that contains the following lines:

-----BEGIN NEW CERTIFICATE REQUEST----- ... ... -----END NEW CERTIFICATE REQUEST-----

The openssl equivalent command is:

openssl req -newkey rsa:2048 -nodes -keyout newPrivateKey.pem -out myRequest.csr

Thank you!

asked Nov 12 '14 at 11:37

Guilherme's gravatar image

Guilherme
11


This is not a feature within Chilkat at the time of this post. It is a on Chilkat's list, as well as an ASN.1 API. Don't hold your breath though..

link

answered Nov 14 '14 at 11:55

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

Is this feature available now please?

link

answered Nov 29 at 04:13

hung's gravatar image

hung
11

Hi, i have two ideas to stick with: 1. Generate CSR online: Generate RSA keypair with CkoRSA then convert to PEM format. Submit it to your private and secure server which capable of running "openssl req -new -key <yourkey.pem> -out <your_csr>.csr" and download the CSR. Pros: it simple, openssl command line is easies way to go Cons: This approach share your private on the line, so pay attention on data encryption before sharing.

2.Generate CSR locally on iOSApp #1. Generate RSA keypair, #2.Convert it to P12 format, #3. then try https://github.com/ateska/ios-csr to generate CSR My problem is at #2, the following code is still not success CkoPem pem = [[CkoPem alloc] init]; [pem AddPrivateKey: privKey]; [pem AddPublicKey: publicKey]; CkoPfx pfx = [pem ToPfx]; //nil, LastErrorText: Failed to find/build certificate chain for a private key.

I believe if we could fix #2, then we have a work around for this issue.

Thanks, Hung,

link

answered Dec 01 at 20:53

hung's gravatar image

hung
11

edited Dec 01 at 20:57

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×48
×9
×3
×1

Asked: Nov 12 '14 at 11:37

Seen: 1,161 times

Last updated: Dec 01 at 20:57

powered by OSQA