X509_STORE lookup problem

2022-06-10 Thread Chris Bare
? I have a get_by_fingerprint function, but it never gets called. -- Chris Bare

Re: EC_POINT_get_affine_coordinates replacement in 3.0

2022-05-03 Thread Chris Bare
Thanks, I'll check those out. On Tue, May 3, 2022 at 4:53 PM William Roberts wrote: > On Tue, May 3, 2022 at 3:18 PM Chris Bare wrote: > > > > > > On Tue, May 3, 2022 at 3:10 PM William Roberts > wrote: > >> > >> On Tue, May 3, 2022 at 1:14 PM

Re: EC_POINT_get_affine_coordinates replacement in 3.0

2022-05-03 Thread Chris Bare
On Tue, May 3, 2022 at 3:10 PM William Roberts wrote: > On Tue, May 3, 2022 at 1:14 PM Chris Bare wrote: > > > > I'm converting some openssl 1.0 code to 3.0 and I don't know how to get > the coordinates > > in a 3.0 way. > > The old code is: > > BN_

EC_POINT_get_affine_coordinates replacement in 3.0

2022-05-03 Thread Chris Bare
x); pubkey = EC_KEY_get0_public_key ((EC_KEY *) EVP_PKEY_get0 (pkey)); group = EC_KEY_get0_group ((EC_KEY *) EVP_PKEY_get0 (cvr->sm_pkey)); EC_POINT_get_affine_coordinates_GFp (group, pubkey, X, Y, ctx) What would be the 3.0 way to get X and Y without using deprecated functions? -- Chris Bare

[openssl-users] how to control the cipher list of an openssl server

2018-03-12 Thread Chris Bare
false); but after that the nmap script doesn't find any ciphers. Any suggestions? -- Chris Bare -- openssl-users mailing list To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users

[openssl-users] SSL_shutdown:shutdown while in init

2017-10-17 Thread Chris Bare
et the error: SSL23_GET_SERVER_HELLO:unknown protocol and BIO_do_connect fails as expected, but BIO_free gives this error: SSL_shutdown:shutdown while in init If I don't free it, I have a memory leak. Is there something else I need to do to clean up the BIO? I tried calling BIO_do_handshake, but that crashes (not surpr

Re: [openssl-users] EVP_get_digestbyobj fails for ecdsa-with-SHA256

2016-07-07 Thread Chris Bare
a function that will return just the digest algorithm? I'm trying to be as flexible as possible, so I don't want to hard code this or have my own limited lookup table. On Thu, Jul 7, 2016 at 2:54 PM, Jakob Bohm wrote: > On 07/07/2016 20:08, Chris Bare wrote: > >> EVP_get_di

[openssl-users] EVP_get_digestbyobj fails for ecdsa-with-SHA256

2016-07-07 Thread Chris Bare
HA256 OBJ_NAME_get = (nil) EVP_get_digestbyobj failed So it looks like my sig_alg_oid is good, but OBJ_NAME_get fails. I am using openssl 1.0.2d-0ubuntu1.5 in ubuntu 15.10 Am I doing something wrong, or could this be a bug in the library? Any suggestions appreciated. -- Chris Bare -- openss

[openssl-users] Access to ECC X and Y

2016-05-31 Thread Chris Bare
Is there a public interface to access the X and Y elements of an Ecc public key? I tried: EC_KEY *ecc; BN_num_bytes (ecc->pub_key->X); but get the compiler error: error: dereferencing pointer to incomplete type ‘EC_KEY {aka struct ec_key_st}’ -- Chris Bare -- openssl-users mailing l

Re: [openssl-users] How to get current using openssl version

2014-12-15 Thread Chris Bare
e/openssl > > > -- > Rejoice,I Desire! > ___ > openssl-users mailing list > openssl-users@openssl.org > https://mta.opensslfoundation.net/mailman/listinfo/openssl-users > -- Chris Bare __

Re: which cipher was chosen?

2014-11-21 Thread Chris Bare
r. Stephen Henson wrote: > On Fri, Nov 21, 2014, Chris Bare wrote: > > > Is there a way to query the BIO or SSL object to see which cipher is > being > > used? > > I have a case where my openssl client's performance is significantly > slower > > wh

which cipher was chosen?

2014-11-21 Thread Chris Bare
cious that Windows has started to favor the slower ECC ciphers, but I need a way to prove it. -- Chris Bare

my custom lookup method is leaking certs

2014-10-27 Thread Chris Bare
to do this via openssl functions, can anyone enlighten me? -- Chris Bare

CVE 2014-0160 and FIPS 140-2 module

2014-04-09 Thread Chris Bare
Can anyone confirm my understanding that the FIPS 140-2 certified module is NOT affected by the CVE 2014-0160 vulnerability? -- Chris Bare

RSA_PKCS1_PSS_PADDING and CMS_verify (repost)

2013-01-08 Thread Chris Bare
ow in CMS_verify. If not, I have some experience working with the openssl source code, but some pointers would be appreciated. -- Chris Bare On Mon, Sep 12, 2011, Stef Hoeben wrote: > Hi, > > we have an SOD (a CMS for e-passports and e-ID cards) file that we can read > out and ver

RSA_PKCS1_PSS_PADDING and CMS_verify

2013-01-04 Thread Chris Bare
. -- Chris Bare On Mon, Sep 12, 2011, Stef Hoeben wrote: > Hi, > > we have an SOD (a CMS for e-passports and e-ID cards) file that we can read > out and verify nicely if the signature algo is RSA_PKCS1_PADDING. > > But if the algo is RSA_PKCS1_PSS_PADDING (see attached txt

[no subject]

2013-01-03 Thread Chris Bare
openssl code, and could try to fix it myself, but pointers would be helpful. -- Chris Bare On Mon, Sep 12, 2011, Stef Hoeben wrote: > Hi, > > we have an SOD (a CMS for e-passports and e-ID cards) file that we can read > out and verify nicely if the signature algo is RSA_PKCS1_PADDING

BIO_f_buffer read behavior

2011-03-22 Thread Chris Bare
expected behavior of the BIO_f_buffer on a read? If so, is the only alternative to track a read and a write bio? I assume that I can read from the bio under the BIO_f_buffer without causing problems, is that correct. -- Chris Bare ch...@bareflix.com

Re: Installing openssl 1.0.0a in Ubuntu

2010-11-11 Thread Chris Bare
ons may break other applications that expect 0.9.8 data files. Also programs linked with 0.9.8 libraries will have to be rebuilt to use the 1.0.0 libraries since the major version number has changed. Let's hope debian or ubuntu packages 1.0.0 so

.deb packages for 1.0.0?

2010-11-09 Thread Chris Bare
Has anyone seen .deb packages for openssl 1.0.0? I took a quick stab at converting the 0.9.8 debian files, but I ran into a lot of problems and it takes a long time to debug. -- Chris Bare ch...@bareflix.com __ OpenSSL Project

Re: certs with the same Subject Name

2010-06-11 Thread Chris Bare
> On Thu, Jun 10, 2010, Chris Bare wrote: > > > I have 2 different certs with the same subject name in a CA dir: > > > > lrwxrwxrwx 1 chris chris 23 2010-06-10 14:35 0721e1e6.0 -> other.pem > > lrwxrwxrwx 1 chris chris 18 2010-06-10 14:35 0721e1e6.1

certs with the same Subject Name

2010-06-10 Thread Chris Bare
onnect example.com:443 -CApath same_names I get: Verify return code: 18 (self signed certificate) it appears to be choosing 0721e1e6.0, because if I delete that one, it works. Since there is no requirement that Subject Names be unique, is there a way to make this work? -- Chris Bare ch...@barefl

trying to send an unsigned cms

2010-06-03 Thread Chris Bare
the code below works fine if signed = true. If signed = false, i2d_CMS_bio_stream seg faults. I've looked through the code inside CMS_sign and didn't see anything else obvious that I should call. any suggestions on what I'm missing for an unsigned CMS? -- Chris Bare ch.

Re: X509 Verify callback

2010-05-11 Thread Chris Bare
> On Mon, 2010-05-10 at 14:43 -0400, Chris Bare wrote: > > Is there a way get have X509_verify_cert retry it's path building after it > > gets an X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT? > > My idea is to implement a verify callback that uses the AIA information to > &

Re: X509 Verify callback

2010-05-10 Thread Chris Bare
> On 05/10/2010 08:43 PM, Chris Bare wrote: > > Is there a way get have X509_verify_cert retry it's path building after it > > gets an X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT? > > My idea is to implement a verify callback that uses the AIA information to > > download t

X509 Verify callback

2010-05-10 Thread Chris Bare
have to let X509_verify_cert error out and call it again? -- Chris Bare ch...@bareflix.com __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openss

Re: problem verifying OCSP signature

2010-04-13 Thread Chris Bare
. Would it be incorrect to look in the store also here? I'd be glad to work on a patch. I understand I can make the command line tool with with -verify_other, but in my code I have no handy way to do that. My users are going to dump all trusted certs, regardless of pu

problem verifying OCSP signature

2010-04-13 Thread Chris Bare
open the directory. -- Chris Bare ch...@bareflix.com __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Ma

X509_STORE reuse

2010-04-06 Thread Chris Bare
Can I reuse an X509_STORE for multiple ssl connections, cert verifications etc, or should I create a fresh one for each operation? If I reuse it will it continue to grow as it pulls in more certificates? -- Chris Bare ch...@bareflix.com

openssl 1.0 path validation

2010-04-02 Thread Chris Bare
ver go download the intermediaries? Is there a way to hook in my own function to do this? It seems like you have the info you need during the path building process, and I don't want to have to duplicate that. Any other suggestions on the best way to handle this? -- Chris Bar

way to get X509 cert from CMS

2010-03-17 Thread Chris Bare
Is there a API to extract the X509 cert(s) from a CMS_ContentInfo object? Looking at the implementation of CMS_add0_cert() I see how to reach them, but that function depends on things defined in cms_lcl.h, so I can't re-implement it in my code. Any suggestions? -- Chris Bare ch...@barefli

"illegal options on item template" error

2009-07-17 Thread Chris Bare
ASN1_IMP_OPT(CVRequest, requestNonce, ASN1_OCTET_STRING, 1) } ASN1_SEQUENCE_END(CVRequest) IMPLEMENT_ASN1_FUNCTIONS(CVRequest) Is the error complaining out the structure I have defined, or the der data it is trying to process? As far as I can tell the der data doesn't even contain a requestorRef. Any s

calling i2d_CMS_bio_stream twice

2009-07-13 Thread Chris Bare
econd call to i2d_CMS_bio_stream, but I also get 0 bytes output to the file. If I comment out the first call, it works fine. Is there something else I need to reset, or once it's sent, do I have to start all over with a new cms object? -- Chris Bare ch...@ba

how to get CMS contents

2009-07-08 Thread Chris Bare
What is the proper way to access this data: data = cms->d.signedData->encapContentInfo->eContent->data; length = cms->d.signedData->encapContentInfo->eContent->length; The above only works if I include a private header: crypto/cms/cms

CMS_verify question

2009-06-29 Thread Chris Bare
ailed error:2E09A09E:CMS routines:CMS_SignerInfo_verify_content:verification failure error:2E09D06D:CMS routines:CMS_verify:content verify error If I pass the CMS_NO_CONTENT_VERIFY flag to CMS_verify, of course I don't get the error. Any suggestions on how to track this down? -- Chr

Re: "read bio not set" error

2009-06-25 Thread Chris Bare
> A fix has now been applied, please try the current 1.0.0 CVS, get the next > snapshot or just manually apply: > > http://cvs.openssl.org/chngview?cn=18310 > > Steve. I built from the latest CVS and it now works fine. Thanks for the fix. -- Chris Bare

Re: "read bio not set" error

2009-06-25 Thread Chris Bare
other flag or function I need to use to prevent this? > > > > Ouch, this is a nasty bug PR #1748 which has only been noticed when something > non-trivial is attempted with SSL BIOs. > > I'll look into fixing it. > In further testing, I

Re: "read bio not set" error

2009-06-24 Thread Chris Bare
intf ("ssl->rbio %p\n", ssl->rbio); printf ("ssl->wbio %p\n", ssl->wbio); output is: ssl->rbio 0x1aadf60 ssl->wbio 0x1aadf60 i2d_CMS_bio_stream ssl->rbio (nil) ssl->wbio (nil) So naturally, after that the next call to BI

"read bio not set" error

2009-06-24 Thread Chris Bare
er is sending back some data, but BIO_read returns -1. Any suggestions? -- Chris Bare ch...@bareflix.com __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-

Re: length vs EOC

2009-06-19 Thread Chris Bare
eta2 and I've tried setting CMS_STREAM as well as > > CMS_STREAM|CMS_PARTIAL, but I have not gotten any output with EOC. > > Any idea what else I'm missing? > > > > Use i2d_CMS_bio_stream() instead. > Thanks, that did the trick.

Re: length vs EOC

2009-06-19 Thread Chris Bare
> On Wed, Jun 17, 2009, Chris Bare wrote: > > > I'm trying to use openssl to generate a signed CMS that matches the output > > of > > a windows program written with the BouncyCastle library. One of the > > differences I've noticed is that my openssl

length vs EOC

2009-06-17 Thread Chris Bare
s a snipped of what my code is doing: int flags = CMS_STREAM; // or 0 BIO *mem = BIO_new(BIO_s_mem()); // write stuff to mem cms = CMS_sign(scert, skey, NULL, mem, flags); if (!i2d_CMS_bio(out, cms)) Is there some other flag, or some mode I can set to make

ASN1 DEFAULT values

2009-06-16 Thread Chris Bare
extnValue OCTET STRING } -- Chris Bare ch...@bareflix.com __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated Li

How to get size of a cms?

2009-06-16 Thread Chris Bare
e CMS. -- Chris Bare ch...@bareflix.com __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manager m

ASN1 code generator?

2009-06-09 Thread Chris Bare
ng openssl code. -- Chris Bare ch...@bareflix.com __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated Li

best ASN1 template example

2009-06-05 Thread Chris Bare
I'm trying to understand the ASN1 macros like: ASN1_SEQUENCE IMPLEMENT_ASN1_FUNCTIONS etc to implement my own structures. What examples in the code would be best to follow, especially for nested structures with optional elements? -- Chris Bare ch...@barefli

Re: CMS/ANS1 examples

2009-05-20 Thread Chris Bare
ompress it etc, and it looks like I can use CMS_data_create in that case, but then I just want to write it to a socket in DER format, not base64. Also I need to figure out how to build up other ASN1 structures to go inside the ContactInfo. I hoped looking at the CMS code would give me an e

CMS/ANS1 examples

2009-05-20 Thread Chris Bare
ample code or pointers would be appreciated. -- Chris Bare ch...@bareflix.com __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Auto