Skip to content
#

csr

Here are 85 public repositories matching this topic...

mike-robertson
mike-robertson commented Oct 10, 2018

Preface: I am not an expert in encryption, so sorry for any inaccuracies with how I am describing the issue here.

In the documentation, it states:

// Note: CBC and ECB modes use PKCS#7 padding as default

Is it possible to configure what padding is used? I am working with a system where they are not expecting padding. Is that something that even makes sense/is possible?

flarn2006
flarn2006 commented Jun 5, 2019

I spent a lot of time at work tracking down an issue where certificates were being generated with the wrong public key, not the one given in the CSR. After some intense debugging, replacing the OpenSSL binary with a script that logs stuff, etc - I determined that it was using the -signkey option, which (as you know) is for self-signed certificates, and OpenSSL was silently replacing the CSR key

thka2315
thka2315 commented Jan 28, 2020

I use Ubuntu Eoan with python3-asn1crypto 0.24.0-1.
It looks like PrivateKeyInfo.bit_size and PublicKeyInfo.bit_size returns non-integer.
I can see that *.byte_size returns a value with int() but the *.bit_size functions does not. The documentation in the function says it should return an integer.

print(certificate.public_key.bit_size) returns in my case "256.0"

Shouldn't it return only "2

Improve this page

Add a description, image, and links to the csr topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the csr topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.