openssl

How to verify the SSL connection when calling a URI?

Hello, I am developing a web application that is authenticated using CAS (A single-sign-on solution: http://www.ja-sig.org/wiki/display/CAS/Home). For security reasons, I need two things to work: The communication between CAS and my application needs to be secure My application needs to accept the certification coming from CAS, so tha...

Linux/OpenSSL:Send find output to openssl

I am trying to send the output from the find command to OpenSSL in order to find out when certificates expire. This finds the files find . -name \*.pem -type f This generates the cert info I want openssl x509 -in certname.pem -noout -enddate Can I merge these two? Thanks for your help. ...

M2Crypto: Is PKey a reference to a Public or a Private key?

In the PKey class documentation of the M2Crypto python package (an OpenSSL wrapper for Python) it is said that PKey is a reference to a Public key. My opinion is instead that it's a reference to a Private Key because the init method of the PKey class calls the evp_pkey_new openssl function that, from this link: http://linux.die.net/man/...

OpenSSL Windows x64 Compilation error

Hi, I'm getting the following error when trying to compile OpenSSL 1.0, 64 bit: ias -o tmp32\ia64cpuid.obj tmp32\ia64cpuid.asm 'ias' is not recognized as an internal or external command, operable program or batch file. NMAKE : fatal error U1077: 'ias' : return code '0x1' Stop. Does someone know what can I do? (I do it on Windows ...

x509 certificate verification in C

Hi All, I do have certificates in DER and PEM format, My goal is to retrieve the fields of Issuer and Subject And verify the Certificate with the CA public key and simultaneously verify CA certificate with the Root public key. I am able to retrieve all the details of issuer and subject But unable to verify the certificate. Please help...

OpenLDAP and SSL

I am having trouble trying to connect to a secure OpenLDAP server which I have set up. On running my LDAP client code java -Djavax.net.debug=ssl LDAPConnector I get the following exception trace (java version 1.6.0_17) trigger seeding of SecureRandom done seeding SecureRandom %% No cached client session *** ClientHello, TLSv1 RandomC...

Openssl_seal in Python

Hi, to connect a server i've found that using PHP i've to use openssl_seal. That's ok, but i want to use Python. But i'm not able to convert "Openssl_seal" in an equivalent function. can you help me? this is what Openssl_seal do: Description int openssl_seal ( string $data , string &$sealed_data , array &$env_keys , ...

OpenSSL 1.0: Remove Elliptic Curves Extension

Hi, Is there any way to remove the elliptic curves extension - elliptic_curves and ec_point_formats? (Via function like SSL_CTX_set_options with SSL_OP_NO_TICKET for the SessionTicket extension, or by conditional compilation, or something else that works...) Thank you in advance! ...

openssl, sign (sha1) a message AND make s/mime

hi! I'm new to openssl and all this crypto-stuff and would need a little help. I need to sign a message (digest sha1) AND put it in a mime-part. a) digest and signing it I get with: openssl sha1 -sign mycert.pem -passin pass:1234 data > signed_sha1 b) mime and signing (but the whole message instead of only digest) I get with: ope...

SIMPLE OpenSSL RSA Encryption in C/C++ is causing me headaches

SOLVED: I was dumb. First argument of encrypt should have been key.size() and first argument of decrypt should have been RSA_size(myKey). Hey guys, I'm having some trouble figuring out how to do this. Basically I just want a client and server to be able to send each other encrypted messages. This is going to be incredibly insecure bec...

OpenSSL with Apache Tomcat 6

I use Tomcat with native extensions, so it is necessary to use OpenSSL for making certificates. Does anyone know how to make a certificate with OpenSSL and install it into Tomcat? ...

XCode can't find headers in /usr/include

Hi all, I'm trying to use standard system header files in my C++ XCode project: #include <openssl/bio.h> #include <openssl/ssl.h> #include <openssl/err.h> The build fails and it complains: "Openssl/bio.h: No such file or directory" I added /usr/include to the "Header Search Paths" in Project settings, but that doesn't fix it. I CO...

Access Client Write Key & Server Write Key from OpenSSL C API

Hello, I have a need to access the encryption (cipher, write) keys that are generated from the master key that is generated from the OpenSSL C API. I know I can access the master key using the SSL struct as follows: ssl->session->master_key Unfortunately looking at the OpenSSL code has not gotten me very far as the API is not very ...

RSA_sign and RSACryptoProvider.VerifySignature

I'm trying to get up to speed on how to get some code that uses OpenSSL for cryptography, to play nice with another program that I'm writing in C#, using the Microsoft cryptography providers available in .NET. More to the point, I'm trying to have the C# program verify an RSA message signature generated by the OpenSSL code. The code tha...

OpenSSL signing and Google App Engine

Is there a way to sign values with a PEM formatted private key in Google App Engine (Python)? For example in PHP it could be achieved like this: $key = openssl_pkey_get_private($privateKey); openssl_sign($strToBeSigned, $signature, $key); echo "signature: ".base64_encode($signature); Is there a way to do the same thing with Python in...

PKCS#7 Signed Code Image extracting

Hi, I wanted to extract the Signer Informations from PKCS#7 Signed Code Image using C/CPP. I wanted to know the openssl API's. I am Able to extract Using bouncy castle (CMSSignedData). Please let me know the openssl API's which I can use in C/CPP to extract the each signers and signer informations and verify the Signers. is there any ...

Stuck with luasec Lua secure socket

This example code fails: require("socket") require("ssl") -- TLS/SSL server parameters local params = { mode = "server", protocol = "sslv23", key = "./keys/server.key", certificate = "./keys/server.crt", cafile = "./keys/server.key", password = "123456", verify = {"peer", "fail_if_no_peer_cert"}, options = {"all", "no_sslv2"...

Open SSL without SHA1

Is there any way to use Open SSL without any SHA1 hash functions and using one of SHA2 functions instead of it? I think firstly, I should find all the functions that call SHA1 algorithm, and I should understand why SHA1 is still used. While changing the hash function, the bits are different in SHA1 and SHA2 so it may cause some problems....

using OpenSSL to create .pfx file

I've been offered some commands to create a .pfx file using OpenSSL. For the most part, my partner gathered this information from: http://stackoverflow.com/questions/553149/is-it-possible-to-convert-an-ssl-certificate-from-a-key-file-to-a-pfx I have the following files: 2010certificate.cer 2010cert_and_key.pem private_verisign10to1...

OpenSSL certificate lacks key identifiers

How do i add these sections to certificate (i am manualy building it using C++). X509v3 Subject Key Identifier: A4:F7:38:55:8D:35:1E:1D:4D:66:55:54:A5:BE:80:25:4A:F0:68:D0 X509v3 Authority Key Identifier: keyid:A4:F7:38:55:8D:35:1E:1D:4D:66:55:54:A5:BE:80:25:4A:F0:68:D0 Curently my code builds sertificate wel...