한국어

네트워킹

온누리070 플레이스토어 다운로드
    acrobits softphone
     온누리 070 카카오 프러스 친구추가온누리 070 카카오 프러스 친구추가친추
     카카오톡 채팅 상담 카카오톡 채팅 상담카톡
    
     라인상담
     라인으로 공유

     페북공유

   ◎위챗 : speedseoul


  
     PAYPAL
     
     PRICE
     

pixel.gif

    before pay call 0088 from app


openssl 을 이용한 인증서 생성 절차를 정리한다. 개인키 CSR SSL 인증서 파일 생성


인증서 만들기

출처 : 딤딤이 블로그(http://dimdim.tistory.com/50)

openssl 을 이용한 인증서 생성 절차를 정리한다.
참고로 여기서 개인키파일(key.pem), CSR파일(csr.pem), 인증서 파일 (crt.pem) 등의 파일명은 마음데로 변경할 수 있다.
1. 개인키 파일 생성
  - Random Sate 사용 여부 및 암호화는 필수가 아닌 선택사항이다.
  - 키파일을 암호화할 경우 패스워드 입력이 필요하며, 해당 패스워드를 알아야만 키파일을 사용할 수 있다. (암호화 했으니까 복호화해야 키값을 알지!!! 암복호화에 사용되는 것이 패스워드고!!!)
openssl md5 * > rand.dat  #Random State 파일 생성
openssl genrsa -rand rand.dat -des3 1024 > key.pem    #Random State 사용 & des3 암호화 사용 & 1024 bit 키 생성
openssl genrsa -des3 1024 > key.pem  #des3 암호화 사용 & 1024 bit 키 생성
openssl genrsa 1024 > key.pem  #1024bit 키생성 (패스워드 필요없음)
openssl genrsa > key.pem  #기본 512bit 키 생성

2. CSR 생성
  - CSR은 "Certificate Signing Request" 의 약자로 인증서 서명 요청을 의미한다. 좀더 쉽게 설명하면 CSR 파일은 인증서를 발급받기 위해서 나는 "아무개"이고 키값은 어떤걸 사용한다는 정보를 저장하고 있다.
openssl req -new -key key.pem > csr.pem
Enter pass phrase for key.pem:    #키파일 생성시 사용한 패스워드 입력 (키파일을 암호화한 경우만 필요한 과정임)
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [GB]:                                         #ISO 국가코드 입력
State or Province Name (full name) [Berkshire]:                       #도/시 입력
Locality Name (eg, city) [Newbury]:                                        #도시명 입력
Organization Name (eg, company) [My Company Ltd]:              #회사명 입력
Organizational Unit Name (eg, section) []:                               #조직명 입력
Common Name (eg, your name or your server's hostname) []:   #사용자명 혹은 서버 호스트명
Email Address []:                                                                 #이메일주소

3. SSL 인증서 파일 생성
3.1 공인 인증서 파일 생성
  - 공인인증서 발급 기관의 발급절차를 따라 인정서 파일을 발급받으며 인정서 발급시 위에서 생성한 CSR 파일이 필요하다.
  - 공인 인증 기관은 아래와 같다.
    + 한국전자인증 : http://www.crosscert.com
    + 금융결제원 전자인증센터(yessign) : https://www.yessign.or.kr/ssl/index.htm
3.2 사설 인증서 파일 생성
  - openssl을 이용하여 사설 인증서 파일을 생성한다. 
openssl req -key key.pem -x509 -nodes -sha1 -days 365 -in csr.pem -out crt.pem

조회 수 :
23040
등록일 :
2017.09.14
15:36:50 (*.160.88.18)
엮인글 :
http://www.webs.co.kr/index.php?document_srl=3311892&act=trackback&key=09f
게시글 주소 :
http://www.webs.co.kr/index.php?document_srl=3311892
List of Articles
번호 제목 글쓴이 날짜 조회 수sort
93 Debian Download 데비안 리눅스 다운로드 admin 2017-09-02 26632
92 특정 IP 엑세스 못하게 하는방법 admin 2014-10-29 26680
91 Configuration of Red Hat 5.4 Xen for SR-IOV Support admin 2015-08-02 28247
90 /bin/false, /sbin/nologin 의 차이점 admin 2014-10-13 28335
89 Linux and Unix touch command admin 2015-11-15 28647
88 다양한 사운드 파일있는곳 admin 2011-12-19 29842
87 zip 압축 파일 및 텍스트 파일의 한글 깨짐 해결 방법 admin 2018-03-28 29966
86 Wireshark admin 2011-12-16 29980
85 Event IP 20187 admin 2013-04-08 30269
84 무료백신 여러가지 분류해놓은곳 admin 2011-12-16 30277
83 Install GUI on Ubuntu Server admin 2014-12-21 30320
82 VMWARE VM Error boot loader install grub - install /dev/sda or /dev/hda MBR linux admin 2016-01-27 30502
81 debian 8.8 download cd1 cd2 cd3 etc admin 2017-09-03 30588
80 [리눅스] 소프트웨어 레이드의 리빌딩 및 리싱킹 속도를 높이는 5가지 방법 admin 2014-10-17 30823
79 Remote Desktop Connection from Windows 7/8 to Ubuntu 14.04 admin 2014-12-21 31271
78 리눅스의 막강한 네트워크 필터 iptables admin 2012-04-15 31332
77 Name Server 설정및 이해 admin 2011-12-13 31354
76 윈도우 ssh 접속 프로그램 admin 2017-09-29 31361
75 리눅스 시스템 유저 추가 명령어 useradd 사용하기 admin 2014-08-09 32267
74 [리눅스] 부팅 시 자동 실행 프로그램 등록|작성자 나눔HN admin 2018-06-01 32466
73 Linux Memory Management – Virtual Memory and Demand Paging admin 2014-03-03 32742
72 검색 파일리스트 만든 다음 여러파일 한방에 압축하기 admin 2012-02-14 32849
71 문서 편집기 vi vim command 명령어 정리 admin 2014-10-29 33988
70 Using Windows RDP to Access your Ubuntu Instance admin 2014-12-21 34762
69 Cloned VMware CentOS6 Server "device eth0 does not seem to be present, admin 2017-08-29 35836
68 WinXP 부팅안되는 현상 NTLDR is missing 메세지 admin 2012-07-12 36166
67 리눅스 시작시 부팅 시, 프로그램 자동실행 등록하기 admin 2017-08-30 36389
66 How to start GUI from command line? admin 2014-12-21 36707
65 Start / Stop and Restart Apache 2 Web Server Command 아파치 시작 스톱 명령어 admin 2019-04-08 36787
64 Deploying FreeRADIUS with the MySQL Cluster Database file admin 2013-03-22 36926