How to compute all attributes of RSA private key from modulus and private exponent?

2008-08-19 Thread Metalpalo
Hello Ihave got one question: Does exist some way how to compute all attributes of private key from modulus and private exponent? I think as public exponent, prime1, prime2, exp1, exp2... Thanks -- View this message in context: http://www.nabble.com/How-to-compute-all-attributes-of-RSA-privat

How to use openssl library in VB6 or VC++?

2008-01-17 Thread Metalpalo
Hello everybody I want to encrypt/decrypt data with DES3 algorithm in VB6 and VC++ ,but I dont know how to make it. Because I have only used exe utility until now, but I need concret function in my source code. Can somebody tell me what is neccessary to achieve it. What libraries will I need ?

PKCS8 private key in openss;

2007-11-29 Thread Metalpalo
Hello I have such problem. I generated private key(RSA1024) through openssl and now I want to load it via BC in java or through Crypto ++. But It seems that here is some incompatibility. I don't know to parse PKCS8 format from openssl through JAVA and vice-versa. What format is used in openssl.

Compatibility between Java crypto and open ssl

2007-10-11 Thread Metalpalo
Hello I have some question about compatibility between java crypto and openssl library. This is my case: 1.I created DESede key and stored it to file: {code} SecretKey key = KeyGenerator.getInstance("TripleDES").generateKey(); File f = new File("c:\\key.dat"); DataOutputStream dos =new DataOutpu

What meams first byte '04' in EC public key?

2007-09-27 Thread Metalpalo
Hello everybody I created EC keypair via JAVA with secp160r2 template. When I looked at text form of public key, I saw there this: "04666d59b1fb53c1c998c12c71731d3a36a37cd995cadeee96c156c8d7c7852b39b5fefd1fa3ce18c7" I know that last 40 bytes present x and y number of ec point but I don't know

Re: EC public key info

2007-08-10 Thread Metalpalo
Thank You for explanation. I have one more question. I read that the size of public key for secp160r2 is 64B and for RSA 162. I need to illustrate the content of own certificate on some application mask. This certificate contain only some attributes from X509 format, but I want to put generated

EC public key info

2007-08-10 Thread Metalpalo
Hello everybody I have some questions. I create ec key pair with secp160r2 curve and I need to achieve information from public key in der format as: EC Public Key: pub: 04:66:6d:59:b1:fb:53:c1:c9:98:c1:2c:71:73:1d: 3a:36:a3:7c:d9:95:ca:de

not exact key size

2007-08-09 Thread Metalpalo
Hello I have question. I tried generate public key via openssl (RSA,1024) and I always got 162B large file. Now I want to generate public key via JAVA Cryptography library. I'm repeatedly generating public. For example I created RSA keys with 1024 bit length, but sometimes I got 162B large fil

Re: DES3 encryption

2007-05-10 Thread Metalpalo
Hello I have question: Does somebody know how can I derive ks1,ks2 and ks3 shedules from password entered by command line: openssl enc -des3 -in pass.dec -out pass.enc -pass file:password.txt What's name is of cryptography library what openssl works with? Thanks -- View this message in co

Re: DES3 encryption

2007-05-09 Thread Metalpalo
Hello everybody, My question is: I want to use triple DEC encryption method in my application. But I don't know which library can I use. My application is developed in VB6 a I need to encrypt and decrypt password for login to this application. I'm looking at function: void DES_ede3_cbc_encrypt(

Verification problem

2007-05-09 Thread Metalpalo
Hello everybody Is possible to set up openssl application for verify command in order to checking all relevant CRLs in verification chain ? Because I find that the CRL checking is exercised only at the lowest level, that means 0 depth in verification level. Thanks -- View this message in con

Re: How put issuerUniqueID into certificate?

2007-05-07 Thread Metalpalo
esent, version MUST be v2 or v3 but when i'm looking at my generated certificate i don't see any optional attributes of type :BIT STRING Regards Metalpalo -- View this message in context: http://www.nabble.com/How-put-issuerUniqueID-into-certificate--tf3702370.html#a10353651 Sent f

How put issuerUniqueID into certificate?

2007-05-07 Thread Metalpalo
Hello My question is: How can I put issuerUniqueId and subjectUniqueID into the certificate? It is extension or not ? Thanks -- View this message in context: http://www.nabble.com/How-put-issuerUniqueID-into-certificate--tf3702370.html#a10353456 Sent from the OpenSSL - User mailing list archi

Extract certigicate from pem file

2007-05-07 Thread Metalpalo
Hello How can i extract some certificate from pem file. This file contains a number of certificates concatenaded together in pem format. Is possible extract only one certificate and save to new file? Does exists some option in openssl Thanks -- View this message in context: http://www.nabb

Generate same private key

2007-05-06 Thread Metalpalo
Hello everybody My question: Is possible to generate or recovery the same private key from my own ini keys(for example some seeds files) via openssl. I think of recovery of missed private key. I will have some initialization keys(e.g 3 rand-files for generator) and through the use of them I will

How to extract public key from Certificate

2007-05-06 Thread Metalpalo
Hello everybody, I have question, how can I extract public key from certificate file. It is possible via openssl. I found out only way of extracting from private key file but no from certificate. extracting from private key file: openssl rsa -in privatekey.pem -out publickey.pem -pubout Can

Re: missing zone in date

2007-04-30 Thread Metalpalo
Hello And how to achieve that the GMT zone was correct. Because in the case of using parameter -enddate 491231235959+ or -enddate 491231235959+0100 the result is same Dec 31 23:59:59 2049 without GMT(word GMT is missed). In the case of using -days 365 the result: Apr 30 13:50:59 2008 GMT

missing zone in date

2007-04-29 Thread Metalpalo
Hello everybody I have got problem. I created certificate via openssl utility follows by command:openssl.exe ca -extensions v3_ROOT_CA -enddate 491231235959 -out %CA_Certificate% -in %CA_Request% -keyfile %CA_Private_Key% -selfsign -config %CA_OPENSSL_CONF% -passin pass:%CA_PASSWORD% -batch -md

DES3 encryption

2007-04-27 Thread Metalpalo
Hello everybody I need to use des3 encryption for my data but not via openssl but in my application in Visual C++. Can you tell, which library of openssl is used for des3 encryption and which function is used. I want to direct call some function in my application Thanks -- View this message

Length of public key

2007-04-26 Thread Metalpalo
Hello everybody I have question I created the private key via openssl with length 2048b = 256B , but when I'm looking for the public key, I see that the length of public key is 256+1 bytes. Modulus (2048 bit): 00:b1:51:7f:e0:13:c2:e7:ca:44:50:54:ec:01:26:

Extract extension from certificate

2007-04-24 Thread Metalpalo
Hello everbody I have two questions. First: I created certificate with extension a I need to extract these extension(for example) from certificate. Does exist something similar as extracting of the serial number by command: "openssl.exe x509 -in %CERT_SUB_HE% -serial -noout ". Second: I need

Re: NO crl checking in whole chain

2007-04-19 Thread Metalpalo
Does exist some option in configuration file for switch to CRL checking in whole chain? I need to achieve that for all certificate in chain the own CRLs will be checked. I din't find this option. Thanks -- View this message in context: http://www.nabble.com/NO-crl-checking-in-whole-chain-tf36

NO crl checking in whole chain

2007-04-19 Thread Metalpalo
Hello everybody I have such a problem. I created following certificate for ROOT CA, then for subordinary CA and at the end certificate too for end entity. Then I concated CAs certificate and relevant CRLs(empty for this time) into one files "CertsAndCrls.pem" and i tried verify end-entity certif