EAP-SIM simulation, Is there any oepnssl utilities that will calculate the MAC value for AT_MAC attribute in EAP-SIM

2014-07-05 Thread Sanjay Kumar (sanjaku5)
Hi All, I need a help to calculate the MAC value for AT_MAC attribute in EAP-SIM. Is there any openssl utilities (e.g. openssl dgst .) or online tool which will calculate the MAC value when we pass the required input e.g AT_RAND. Thanks, Sanjay

Does any functions are available to encode and decode the TeletexString/T61String to DER formatEOM

2013-11-26 Thread Sanjay Kumar (sanjaku5)
Thanks, Sanjay

Need to send CN attribute in TeletexString/T61String format for ASN1DN Id and certificate

2013-11-25 Thread Sanjay Kumar (sanjaku5)
Hi, We need to send CN attribute in TeletexString format for ASN1DN Id and certificate. Does openssl support for TeletexString/ T61String(T61String, an arbitrary string of T.61 (eight-bit) characters.) ? What are function user to read the T61String format value ? Could someone help me with

openssl function equivalent to openssl x509 -in test.crt -text -noout

2013-10-21 Thread Sanjay Kumar (sanjaku5)
Hi, I am looking for function to display the certificate in text format. What is openssl function equivalent to openssl x509 -in test.crt -text -noout Thanks, Sanjay

memory crash when calling X509_free function

2013-10-03 Thread Sanjay Kumar (sanjaku5)
Hi, I have below 2 functions 1. Received the certificate data is DER format and convert to X509 format RetCode convert_der_to_x509(uint8_t *cert_der, uint32_t cert_len) { const unsigned char *bptr = NULL; X509 *x509 = NULL; bptr = (unsigned char *)cert_der; x509 =

facing issue with function d2i_X509

2013-08-12 Thread Sanjay Kumar (sanjaku5)
I have function to convert certificate from DER to x509 as follow. In below function I able to see in GDB cert_der and cert_len is currect But it crash on line as pointed below. Why d2i_X509 causing crash ? Any help ? RetCode convert_der_to_x509(uint8_t *cert_der, uint32_t cert_len) { const

Issue facing while using function const EVP_MD *EVP_get_digestbyname(const char *name)

2013-08-09 Thread Sanjay Kumar (sanjaku5)
Hello All, I have a test program to use the function EVP_get_digestbyname as below I am not able figure out why function EVP_get_digestbyname return NULL ? After running the program as below I am getting the print md is NULL Any help ? #include stdio.h #include openssl/evp.h int main(int

need to modifying the CN field of CERT subject name

2013-07-03 Thread Sanjay Kumar (sanjaku5)
Hi All, I have a requirement to get unique certificate for each user. To achieve that I am modifying the CN field of CERT subject name by appending the user index to CN field. Eg. If CN=sanjay For userIndex 1, I want to modify it like CN=sanjay01, considering the user count to 1

need to modifying the CN field of CERT subject name

2013-06-28 Thread Sanjay Kumar (sanjaku5)
Hi All, I have a requirement to get unique certificate for each user. To achieve that I am modifying the CN field of CERT subject name by appending the user index to CN field. Eg. If CN=sanjay For userIndex 1, I want to modify it like CN=sanjay01, considering the user count to 1