728x90 반응형 개발 언어/보안 프로그램밍 관련4 Apache에서 보다 강력한 SSL 암호화를 사용하기 위한 설정 방법 2012. 5. 24. OpenSSL Windows 컴파일 및 설치 다음 내용은 Windows 환경에서 OpenSSL을 직접 컴파일 하여 설치하는 방법에 대해서 설명하고 있습니다. ※ 들어가기에 앞서 ... 설명의 편의상 아래와 같은 가정을 전제하고 읽어주세요~ ^^ openssl-0.9.8k.tar.gz 파일은 H:\openssl-0.9.8k 디렉토리에 압축이 풀렸음. OpenSSL 설치 디렉토리는 C:\OpenSSL 이라고 가정함. 1. OpenSSL 다운로드 http://www.openssl.org/source/openssl-0.9.8k.tar.gz 2. ActivePerl 설치 openssl 라이브러리를 컴파일 하기 위해서는 perl 이 필요합니다. http://downloads.activestate.com/ActivePerl/Windows/5.10/ActiveP.. 2012. 5. 24. OpenSSL 관련 자료 OpenSSL 관련 자료 > Linux Journal - An Introduction To Openssl Programming.pdf > Openssl Command-Line Howto.pdf > OpenSSL.pdf 2012. 5. 24. OpenSSL을 사용한 SSL 서버 사용 예제 #include "stdio.h" #include "string.h" #include "openssl/bio.h" #include "openssl/ssl.h" #include "openssl/err.h" int password_callback(char *buf, int size, int rwflag, void *userdata) { /* For the purposes of this demonstration, the password is "ibmdw" */ printf("*** Callback function called\n"); strcpy(buf, "ibmdw"); return 1; } int main() { SSL_CTX *ctx; SSL *ssl; BIO *bio, *abio, *out, *sbio.. 2012. 5. 24. 이전 1 다음 728x90 반응형