mailing.openssl.users
  Home FAQ Contact Sign in
mailing.openssl.users only
 
Advanced search
July 2008
motuwethfrsasuw
 123456 27
78910111213 28
14151617181920 29
21222324252627 30
28293031    31
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
mailing.openssl.users Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  Replacing expiring user certificate         


Author: Liz Voss
Date: Jul 17, 2008 14:32

Hello,
My company developed application using OpenSSL libraries to establish
SSL/TLS connections.
Our customers would like to have a reasonable way of updating user's
certificate (that is about to expire) without bringing the application
down and loosing all the existing SSL/TLS connections.
What would be the best way to implement the user certificate update?
Currently our code calls following functions during application
initialization to set up the user certificate:
PKCS12_parse(p12, "", &pkey, &x509, NULL);
bool = SSL_CTX_use_PrivateKey(ssl_ctx, pkey);
bool = SSL_CTX_use_certificate(ssl_ctx, x509);
Could we call the same code to set up new certificate. Would these calls
effectively replace the older certificate?
Could we update existing connections to use this new certificate during
session rekeying process?
I greatly appreciate any suggestions and link to any sample code.
Thanks a lot.
Liz
______________________________________________________________________ ...
Show full article (1.20Kb)
no comments
  Creating RSA key from given prime numbers         


Author:
Date: Jul 17, 2008 13:17

For educational purposes, I want to use openssl to create an RSA key
with prime numbers I provide.

Is this possible with an openssl command, or do I have to adapt the source code?
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager majordomo@openssl.org
2 Comments
  Adding multiple certificates into one PKCS12 keystore file         


Author: Joanne
Date: Jul 17, 2008 09:07

Hi,

I have about 10 X.509 certificates that I need to load into PKCS12
keystores for testing purpose. I understand each keystore has its
certificate alias. I would like to add all these certificates into
one keystore file and when I load it I can get the certificate I need
through certificate alias. Is it possible to do that using pkcs12
command of OpenSSL?
BTW, I am using this command

openssl>pkcs12 -export -in cert.pem -inkey privatekey.pem -out
keystore_1.p12 -name "cert1"

Thanks,
Joanne
no comments
  Re: Prime number generation on FreeBSD-sparc64         


Author: Patrick Patterson
Date: Jul 17, 2008 08:04

On July 17, 2008 10:48:51 am Yuliya Shulman wrote:
> I'm not using OpenSSL to generate the list of primes. OpenSSl is using
> it in the following path:
>
> RSA_generate_key() - in rsa_depr.c
> RSA_generate_key_ex() in rsa_gen.c
> rsa_builtin_keygen() in rsa_gen.c
> BN_generate_prime_ex() in prime.c
> BN_is_prime_fasttest_ex() in bn_prime.c
>
That's probably exactly what you should be doing.

Since the table of primes previously mentioned tops out at around 30bit primes
(and there are 50 Million of those)... and modern cryptography suggests at
least 4096 bit primes, you are completely doing the right thing by not using
a table. (Just to make it clear - an application using those tables would be
trivially crackable - and not just by reverse engineering the code :)
Show full article (2.10Kb)
4 Comments
  Semantics of SSL_get_peer_certificate() - and fingerprinting         


Author: Kevin Easton
Date: Jul 17, 2008 06:38

Hi,

I'm developing a client in for a protocol where the public servers
that use SSL typically use self-signed certificates.

In order to make the best of a bad situation, I would like to
implement "server key caching", similar to the way that SSH is
typically used (that is, on the first connection to a given server,
the client presents the user with the fingerprint of the public key
that the server used; if the user accepts it, the public key is
remembered by the client so that future connections to the same server
can be verified).

To this end I have two questions:

1) Clearly in this case SSL_get_verify_result() is likely to indicate
that the server certificate failed verification (because it was
self-signed). However, in this situation can I still assume that the
public key from the certificate (obtained with
SSL_get_peer_certificate()) was the public key that the server
actually used to connect with me?
Show full article (1.60Kb)
no comments
  Configuring Signing through the PKCS#11         


Author: sadronmeldir
Date: Jul 17, 2008 05:28

Hello,

I'm currently trying to configure some pre-existing code using EVP signing
to offload work to the PKCS #11 engine on an OpenSPARC. Since I'm new to
this, I tried initializing the PKCS11 engine two different ways which can be
triggered by command line argument. By default, the program will run without
the PKCS11 engine initialized. Here are the two ways I attempt to initialize
the PKCS11 engine.

if (usePKCS == 1){
ENGINE_load_builtin_engines();
ENGINE_register_all_complete();
ENGINE_set_default_RSA(ENGINE_by_id("pkcs11"));
}
else if (usePKCS2 == 1){
ENGINE_load_builtin_engines();
ENGINE *e = ENGINE_by_id("pkcs11");
ENGINE_init(e);
ENGINE_set_default_RSA(e);
}

Below is the section of code in which the actual signing takes place.
Show full article (2.23Kb)
no comments
  Determing if the OpenSSL PKCS11 Patch is installed.         


Author: sadronmeldir
Date: Jul 17, 2008 05:00

I read on a website (http://developer.mozilla.org/en/docs/NSS_FAQ) that
OpenSSL does not support the PKCS #11 chip by default. I'm aware there is a
patch for this, but I'm not sure if it's already installed. I'm currently
working on an OpenSPARC. By typing "openssl version -a" in the terminal, I
recieved the following informaiton:

OpenSSL 0.9.7d 17 Mar 2004 (+ security patches to 2006-09-29)
built on: date not available
platform: information not available
options: bn(64,32) md2(int) rc4(ptr,char) des(ptr,risc1,16,long)
blowfish(ptr)
compiler: information not available
OPENSSLDIR: "/etc/sfw/openssl"

Is there a way to determine if the patch is installed and if the backend is
set up? Any help would be greatly appreciated.

-Chris
--
View this message in context: http://www.nabble.com/Determing-if-the-OpenSSL-PKCS11-Patch-is-installed.-tp18506872p18506872...
Sent from the OpenSSL - User mailing list archive at Nabble.com.
Show full article (1.23Kb)
1 Comment