tagged [openssl]

SSL: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch

SSL: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch I'm not able to setup SSL. I've Googled and I found a few solutions but none of them worked for me. I need some...

4 Oct at 09:40

Convert NSData to String?

Convert NSData to String? I am storing a openssl private Key EVP_PKEY as nsdata. For this I am serializing into a byte stream using the code below where pkey is of type EVP_PKEY. Then I am storing the...

21 Jun at 16:5

OpenSSL Verify return code: 20 (unable to get local issuer certificate)

OpenSSL Verify return code: 20 (unable to get local issuer certificate) I am running Windows Vista and am attempting to connect via https to upload a file in a multi part form but I am having some tro...

18 Jul at 18:50

How to compile .c file with OpenSSL includes?

How to compile .c file with OpenSSL includes? I am trying to compile a small .c file that has the following includes: In the same folder where I have the .c file I have a /openssl with all those files...

12 Nov at 13:19

How to decode a string of text from a Base64 to a byte array, and the get the string property of this byte array without data corruption

How to decode a string of text from a Base64 to a byte array, and the get the string property of this byte array without data corruption Ok so I have a string of text, encoded in Base 64 like below: I...

27 Dec at 13:32

How to generate an openSSL key using a passphrase from the command line?

How to generate an openSSL key using a passphrase from the command line? First - what happens if I don't give a passphrase? Is some sort of pseudo random phrase used? I'm just looking for something "g...

15 Feb at 09:32

How to convert a private key to an RSA private key?

How to convert a private key to an RSA private key? Let me explain my question first. I bought a certificate from a CA and used the following format to generate the csr and the private key: When I ope...

Creating self signed certificate for domain and subdomains - NET::ERR_CERT_COMMON_NAME_INVALID

Creating self signed certificate for domain and subdomains - NET::ERR_CERT_COMMON_NAME_INVALID I followed [this](http://dltr.org/blog/server/573/How-to-install-SSL-on-windows-localhost-wamp) tutorial ...

25 Apr at 04:46

How to do encryption using AES in Openssl

How to do encryption using AES in Openssl I am trying to write a sample program to do AES encryption using Openssl. I tried going through Openssl documentation( it's a pain), could not figure out much...

27 Mar at 12:24

Using openssl to get the certificate from a server

Using openssl to get the certificate from a server I am trying to get the certificate of a remote server, which I can then use to add to my keystore and use within my Java application. A senior dev (w...

Unable to establish SSL connection, how do I fix my SSL cert?

Unable to establish SSL connection, how do I fix my SSL cert? I'm trying to `wget` to my own box, and it can't be an internal address in the wget (so says another developer). When I wget, I get this: ...

26 Jan at 16:19

How to install latest version of openssl Mac OS X El Capitan

How to install latest version of openssl Mac OS X El Capitan I have used `brew install openssl` to download and install openssl v1.0.2f, however, it comes back saying: ``` A CA file has been bootstrap...

1 Feb at 11:58

C# RSA Public Key Output Not Correct

C# RSA Public Key Output Not Correct I am currently trying to generate and send a public RSA key using C#. It should be a 2048 bit long key in PEM format. I have successfully done so using OpenSSL com...

23 May at 12:32

curl: (60) SSL certificate problem: unable to get local issuer certificate

curl: (60) SSL certificate problem: unable to get local issuer certificate ``` root@sclrdev:/home/sclr/certs/FreshCerts# curl --ftp-ssl --verbose ftp://{abc}/ -u trup:trup --cacert /etc/ssl/certs/ca-c...

How can I sign a file using RSA and SHA256 with .NET?

How can I sign a file using RSA and SHA256 with .NET? My application will take a set of files and sign them. (I'm not trying to sign an assembly.) There is a .p12 file that I get the private key from...

How to read .pem file to get private and public key

How to read .pem file to get private and public key I am writing a small piece of code which reads public and private key stored in .pem file. I am using the following commands to generate the keys. ...

6 Jun at 13:35

How do I implement BN_num_bytes() (and BN_num_bits() ) in C#?

How do I implement BN_num_bytes() (and BN_num_bits() ) in C#? I'm [porting this line from C++ to C#,](https://github.com/bitcoin/bitcoin/blob/master/src/bignum.h#L310) and I'm not an experienced C++ p...

13 Apr at 12:47

CMake not able to find OpenSSL library

CMake not able to find OpenSSL library I am trying to install a software that uses cmake to install itself. When I run `cmake ..` on the command line, it gives me following error in the `CMakeLists.tx...

2 Dec at 15:18

Convert encrypt and decrypt C# function to PHP function

Convert encrypt and decrypt C# function to PHP function I would like to convert C# function to PHP function. Here is link to Function in C# : [https://stackoverflow.com/a/19441805/3581428](https://sta...

12 Aug at 05:11

SSL Error: unable to get local issuer certificate

SSL Error: unable to get local issuer certificate I'm having trouble configuring SSL on a Debian 6.0 32bit server. I'm relatively new with SSL so please bear with me. I'm including as much information...

Decrypt string in C# that was encrypted with PHP openssl_encrypt

Decrypt string in C# that was encrypted with PHP openssl_encrypt I have a customer encrypting a string in PHP with the following code: whi

23 May at 12:34

Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?

Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? The problem is in the question. I've done a thorough investigation for solutions in regards to this and I know...

3 Sep at 11:52

How do I get an ECDSA public key from just a Bitcoin signature? ... SEC1 4.1.6 key recovery for curves over (mod p)-fields

How do I get an ECDSA public key from just a Bitcoin signature? ... SEC1 4.1.6 key recovery for curves over (mod p)-fields > Partial solution available on Git EDIT: A compiled version of this is avail...

OpenSSL encryption using .NET classes

OpenSSL encryption using .NET classes I'm looking to create a class that uses the .NET libraries that is compatible with OpenSSL. I'm aware there is an OpenSSL.Net wrapper, but I would prefer to avoid...

2 Jun at 07:36