SSL

pchero on June 13th, 2015

아파치에 ssl 설정을 하고 https 접속을 하려는데 다음의 오류가 나왔다. Secure Connection Failed An error occurred during a connection to pchero21.com. SSL received a record that exceeded the maximum permissible length. (Error code: ssl_error_rx_record_too_long) The page you are trying to view cannot be shown because the authenticity of the received data could not be verified. […]

Continue reading about apache ssl enable problem

pchero on July 26th, 2011

  사내에서 개발중인 제품을 테스트하기 위해 컴파일을 하던 도중, 아래의 오류를 발견했다. mysqlclient 라이브러리를 함께 사용하는 부분이 있었는데, Linking 을 하던 도중 에러가 발생한 것이다. /usr/lib/mysql/libmysqlclient.a(client.o): In function `mysql_close_free_options’: (.text+0xd7d): undefined reference to `SSL_CTX_free’ /usr/lib/mysql/libmysqlclient.a(client.o): In function `mysql_get_ssl_cipher’: (.text+0x1081): undefined reference to `SSL_get_current_cipher’ /usr/lib/mysql/libmysqlclient.a(client.o): In function `mysql_real_connect’: (.text+0x3a4c): undefined reference to `SSL_get_peer_certificate’ /usr/lib/mysql/libmysqlclient.a(client.o): In function […]

Continue reading about undefined reference to `SSL_CTX_free’

//      enc_rsa.c//      //      Copyright 2009 Kim Sung-tae <pchero21@gmail.com>//      //      This program is free software; you can redistribute it and/or modify//      it under the terms of the GNU General Public License as published by//      the Free Software Foundation; either version 2 of […]

Continue reading about OpenlSSL – RSA 패키지를 이용한 공개키 & 개인키 만들기

pchero on December 1st, 2009

#include <stdio.h>#include <string.h>#include <openssl/bio.h>#include <openssl/err.h>#include <openssl/bn.h>#include <openssl/dh.h>#include <openssl/rand.h>#include <openssl/pem.h>   #define IN_FILE “./plain.txt”   // plain file#define OUT_FILE “./encrypt.txt”        // cipher file   unsigned char* readFile(char *file, int *readLen);unsigned char *readFileBio(BIO *fileBIO, int *readLen);unsigned char *addString(unsigned char *destString, int destLen, const unsigned char *addString, int addLen);   int main(int argc, char* argv[]){  […]

Continue reading about OpenSSL – 데이터 암호화

pchero on December 1st, 2009

    #include <stdio.h> #include <stdio.h>#include <string.h>#include <openssl/evp.h>#include <openssl/objects.h>#include <openssl/rand.h>   int main(int argc, char* argv[]){        int i;           // salt bufer length = 8        unsigned char salt[8];        // EVP_CIPHER = Cipher structure        const EVP_CIPHER *cipher = NULL;    […]

Continue reading about OpenSSL- 키와 IV 생성 프로그램