Re: Cloning a CSR or Cert. for a new CSR with a new key?

2020-01-31 Thread Douglas Morris via openssl-users
Thanks everyone for the replies and the community support. I don't think I got across what I am trying to do. I have experimented with subcommands req and x509. The openssl x509 -in -x509toreq -signkey does *NOT* do what I want (I'm pretty sure). openssl x509 -x509toreq may sign a certificate

Re: Cloning a CSR or Cert. for a new CSR with a new key?

2020-01-30 Thread Douglas Morris via openssl-users
k wrote: On 30 Jan 2020, at 21:38, Douglas Morris via openssl-users wrote: I am trying to implement automated domain certificate renewal. A certificate signing request is sent to an ACME server and on success a certificate is returned. I'd like to be able to call OpenSSL to ma

Cloning a CSR or Cert. for a new CSR with a new key?

2020-01-30 Thread Douglas Morris via openssl-users
I am trying to implement automated domain certificate renewal. A certificate signing request is sent to an ACME server and on success a certificate is returned. I'd like to be able to call OpenSSL to make a new key and then make a new certificate signing request just like the old one except for

And that's how text-ish PEM files are.

2020-01-30 Thread Douglas Morris via openssl-users
Victor, Thanks for that walk-through explanation. I probably get it even. I should have followed the reference for the definition of eol in Section 3 of RFC 7468. It was only one more human stack call. I appreciate the clarification on the valid text encoding of explanatory text and of the heade

How text-ish are PEM files?

2020-01-27 Thread Douglas Morris via openssl-users
I expect from RFC 8555 that an ACME server issues a full chain certificate as a reply body in the PEM format. The media type is 'application/pem-certificate-chain'. I can only guess from RFC 1421, sec. 4.3.1 that the byte encoding of the certificate necessarily uses line breaks. I get US-ASCII

Thanks for Encoding Clarification

2020-01-25 Thread Douglas Morris via openssl-users
Viktor, Thanks for meticulously answering my questions. I know the file name encoding is not necessarily the file content encoding. If a Python program were on a Windows computer, it might show a file name encoding of UTC-16, which would make UTC-16 a good guess for what openssl -text would out

OpenSSL Selection of Text Encoding for the -out and -text Options

2020-01-18 Thread Douglas Morris via openssl-users
I'm working on an ACME client written in Python3. I expect the certificate sent by the ACME server will be in utf-8 per RFC 8555, sec. 5. It seems from Python Standard Library function sys.getfilesystemencoding() that a filesystem has a particular encoding for filesystem names (which is not an e

X25519 Unlisted by -list_curves and Any Trusted Python Code for X, Y Coordinates

2019-12-24 Thread Douglas Morris via openssl-users
Hello, I've done some research of other peoples opinions and that's the best I can do. Please advise SVP. I want to us ECDSA for my Web server's SSL certificate via an ACME client to Let's Encrypt and maybe later BuyPass. I thought that EC is better than RSA, but now I don't think so. The answer

Great answer, Nicola Tuveri!

2019-12-23 Thread Douglas Morris via openssl-users
Thanks, Nicola. You know your stuff and write well. Reading your answer was actually pleasant. Douglas Morris

JSON Web Key (JWK) for public key requires x and y coordinates.

2019-12-22 Thread Douglas Morris via openssl-users
Hello, Not a genius with openssl or encryption at all. Thanks for reading. Background: * Generate a private key (really key set) with named curve:openssl genpkey -algorithm EC -pkeyopt ec_paramgen_curve:prime256v1 -pkeyopt ec_param_enc:named_curve -outform PEM -out account-privkey-prime256v1.pem