Category : openssl

I am using openssl to convert the cert bought from Godaddy for using IIS Windows 2016. Command I used to convert is the following, I press Enter for no password. I also tried input a simple and complex password, still got the same error. openssl pkcs12 -export -out website.pfx -inkey private.key -in a01f36fe692456.crt -certfile gd_bundle-g2-g1.crt ..

Read more

I am updating a solution up to Visual Studio 2017 toolset standards and I got to this: LNK2001 unresolved external symbol "public: static class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > const web::http::methods::GET" ([email protected]@[email protected]@@[email protected][email protected][email protected]@@[email protected][email protected]@@[email protected]@B) LNK2019 unresolved external symbol _OPENSSL_add_all_algorithms_noconf referenced in function "public: void __thiscall GatewayManager::EnableGatewayService(void)" ([email protected]@@QAEXXZ) I included all the *.libs, that were mentioned here in similar ..

Read more

I’m trying to use d2i_ECPrivateKey() to load key from a std::string which contains my private key. My goal is to do the ECDSA signing. My code snippet. function sign(){ // random data std::string data = "…."; // 256-bit key in hex std::string private_key = "ee52189da48a2aeda40e488ce3c711f852ebdd12a21d1c7fd8a5b78a0902fad1"; const unsigned char *key_cstr = reinterpret_cast<unsigned char *>( const_cast<char *>(private_key.c_str())); ..

Read more

I am not able to verify an ECDSA signature with openssl: I have the signature, the SHA256 hash of the data, the EC curve name , and an element that the documentation calls public key. If I check this public key with openssl I think I have a ecparams structure: unsigned char parameters[] = { ..

Read more

I use Ubuntu 20.04 with the following OpenSSL version: [email protected]:~grpc/examples/cpp/helloworld/cmake/build ((v1.41.1))$ openssl version OpenSSL 1.1.1f 31 Mar 2020 I installed grpc (v.1.41.1) from github with cmake/make/make install, and then tried to compile example/cpp/helloworld. I got an error involving OpenSSL that I can’t manage to work out: [email protected]:~/grpc/examples/cpp/helloworld/cmake/build ((v1.41.1))$ make [ 5%] Generating helloworld.pb.cc, helloworld.pb.h, helloworld.grpc.pb.cc, ..

Read more

I’m having issues trying to read a certificate list. The code I have now is UniqueSsl<BIO> trustedCertificatesBio(BIO_new_mem_buf(trustedCertificates.c_str(), trustedCertificates.size())); UniqueSsl<X509> tmpCert; while ( tmpCert = UniqueSsl<X509>(PEM_read_bio_X509_AUX(trustedCertificatesBio.get(), nullptr, nullptr, nullptr)) ) { X509_STORE_add_cert(trustedStore.get(), tmpCert.get()); } if (ERR_GET_REASON(ERR_peek_last_error()) != PEM_R_NO_START_LINE) { captureOpensslErrorAndThrow("Failed to add certificate to the trusted X509_STORE"); } Remarks: UniqueSsl and captureOpensslErrorAndThrow are just an helper ..

Read more

I’m on the latest version of Git for Windows (2.33.1.windows.1). This particular Azure server does not support TLS 1.3 (according to ssllabs.com). Is there any configuration that can be done client-side to instruct GIT to use TLS 1.2? Here is the error output: PS C:> git clone https://[email protected]/MyOrganization/project1/_git/project1 Cloning into ‘project1’… 15:34:54.959787 http.c:781 == Info: ..

Read more

I need to perform cms sign operation with openssl c library. But i cant find anywhere how to add parts of data to sign before finalize. I’ve tried to use BIO_new_CMS() similarly to this https://stackoverflow.com/a/60521591/17364700 But in didnt work. Code i have so far: key = get_key_pair(); inBio = BIO_new_file("test_cert.cer", "r"); cert = PEM_read_bio_X509(inBio, NULL, ..

Read more