티스토리 툴바

 

 

Notice»

Recent Trackback»

Archive»

« 2012/05 »
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    

 
 

https 인증서 & SSL

분류없음 | 2011/08/25 13:03 | Posted by 똘똘이뚱뚱이아빠
예전에 프로젝트를 진행하다가 회사 TV Portal의 인증서를 내가 직접 만들고 setup해야하는 일이 발생했었다. :-(...

SSL과 https에 대해서 원론 적인 내용을 fully 이해하고 있는 것은 아니지만..

잊어 먹지 않기 위한 끄적 거림을.. ^^..

 *  Network Packet capture & analyzer.
   * http://www.wireshark.org 에 있는 SW가 제일 좋은 듯...

 * TCP Layer에서의 Packet의 흐름 분석을 누가 한것..
   * http://www.moserware.com/2009/06/first-few-milliseconds-of-https.html 

 *  Secure sockets layer에 대한 IBM의 글.
   * http://publib.boulder.ibm.com/infocenter/tivihelp/v2r1/index.jsp?topic=%2Fcom.ibm.itame2.doc_5.1%2Fss7aumst18.htm 
   * 원론이 잘 적혀 있는 것 같음 :-) 
 
 * 관련 Link들.
   * http://en.wikipedia.org/wiki/Transport_Layer_Security
   * http://www.semicomplete.com/blog/geekery/ssl-latency.html

* OPEN SSL을 사용한 인증서 만드는 script.

 * root 인증서
   * openssl req -newkey rsa:2048 -sha1 -keyout rootkey_2k.pem -out rootreq_2k.pem -config root_2k.cnf  
     - 2048 bit key로 sha1을 사용해서 우선 root CA를 위한 key를 만든다.
   *  openssl x509 -req -in rootreq_2k.pem -days 7300 -sha1 -extfile root_2k.cnf -extensions certificate_extensions -signkey rootkey_2k.pem -text > rootcert_2k.pem
      - 이렇게 하면 우선 기본 적인 root 인증서가 생성됨.
   * format 변환 
      - 이놈의 바닥도 회사마다 SW마다 원하는 format이 틀려서..
        - PEM을 PFX format으로 바꾸는..
          : openssl pkcs12 -inkey rootkey_2k.pem -in rootcert_2k.pem -export -out rootcert_2k.pfx 
        - PEM을 DER format으로 바꾸는..
          : openssl x509 -in rootcert_2k.pem -inform PEM -out rootcert_2k.cer -outform DER

 * client or web server 인증서.
   * openssl req -newkey rsa:2048 -sha1 -keyout clientkey_2k.pem -out clientreq_2k.pem -config client_2k.cnf -reqexts req_extensions
     - 우선 key를 만든다..
   *  openssl rsa -in clientkey_2k.pem -out clientkey_2k.pem 
     - 요 단계는 인증서 교환시에 비밀번호를 안물어보기 위해서 :-)
   *  openssl x509 -req -in clientreq_2k.pem -days 7300 -sha1 -extfile client_2k.cnf -extensions certificate_extensions -CA ../2048bit-root/rootcert_2k.pem -CAkey ../2048bit-root/rootkey_2k.pem -CAcreateserial -text > clientcert_2k.pem 
     - 인증서를 만든다.
   * format 변환  (pem to p12)
    * openssl pkcs12 -export -in clientcert_2k.pem -inkey clientkey_2k.pem -certfile ../2048bit-root/rootcert_2k.pem -out  clientcert_2k.p12 
    * openssl pkcs12 -in clientcert_2k.p12 -out ccert_2k.pem -nodes
    * openssl pkcs12 -export -in ccert_2k.pem -out ccert_2k.p12 -nodes
    * openssl pkcs12 -info -in ccert_2k.p12 -nodes 

 * cnf 파일 관련.
  - 이거도 귀찮은데 우선 client인증서와 web server 인증서의 차이만을..
  - web server인증서 만드는데 이 part를 몰라서 한 이틀 헤맸었음.
    아래에서 파란색이 key point임. :-)
  - client 인증서용 part
[ certificate_extensions ]
basicConstraints = CA:false
nsCertType = client
nsComment  = "OpenSSL Generated Certificate"
subjectKeyIdentifier=hash
authorityKeyIdentifier=keyid:always,issuer:always 

  - web server 인증서용 part
[ certificate_extensions ]
basicConstraints = CA:false
nsCertType = server
keyUsage                = digitalSignature, keyEncipherment
extendedKeyUsage        = serverAuth, nsSGC, msSGC
nsComment = "OpenSSL Certificate for HumaxTvPortal SSL Web Server"
subjectKeyIdentifier = hash
authorityKeyIdentifier = keyid:always,issuer:always
저작자 표시 비영리 변경 금지
크리에이티브 커먼즈 라이선스
Creative Commons License

Stack Protector in mips.

분류없음 | 2011/08/19 10:42 | Posted by 똘똘이뚱뚱이아빠
gcc의 stack protector 기능을 project에 적용 하였다.

역시나 mips는 x86이나 arm보다 어딘가 모르게 약간 부족하지만...
기본적인 기능은 동일하게 동작되는 것을 확인 할 수 있었다...

뭔리및 동작은 아래 링크에서 클릭할 수 있고.

 http://studyfoss.egloos.com/5279959

관련 packaging및 history에 대한 내용은 아래에서 확인 할 수 있는 것 같다.

 
http://www.trl.ibm.com/projects/security/ssp/

우선 compile time에....

 
-fstack-protector-all 와 같은 option을 추가해 주어야 하고.
link시에 libssp를 link를 해주어야 한다...

x86상에서는 약간의 call trace와 memory dump오 같은 정보를 출력해 주는 듯 싶으나..

본인이 사용하는 mips platform 상에서는 부가정보 없이 

***stack smashing detected ***

라는 메시지만 나왔다...

core-dump를 가지고 GDB를 사용하면 아래와 같이 __stack_chk_fail__ 
이라는 함수가 call이 되면서 crash가 나는 것을 확인 할 수 있다.


저작자 표시 비영리 변경 금지
크리에이티브 커먼즈 라이선스
Creative Commons License

Makefile의 세계

분류없음 | 2011/02/15 10:24 | Posted by 똘똘이뚱뚱이아빠
나중에 정리좀 해야겠다.. 우선은 돌아가게 만들어야지..

링크부터 나열..  ^^
저작자 표시 비영리 변경 금지
크리에이티브 커먼즈 라이선스
Creative Commons License

웹 항해일지.2009.09.29

분류없음 | 2009/09/29 23:36 | Posted by 똘똘이뚱뚱이아빠

Below sites are BBC and IP hybrid platform related sites.

BBC's project CANVAS - http://blog.projectcanvas.co.uk/
BBC's freesst blog - http://www.joinfreesat.co.uk/
BBC iPlayer Homepage - http://www.bbc.co.uk/iplayer/

Hybrid Broadcast Broadband TV consortium homepage - http://www.hbbtv.org/

etc..
http://www.hongkiat.com/blog/evolution-of-microsoft-windows-1985-2009/

저작자 표시 비영리 변경 금지
크리에이티브 커먼즈 라이선스
Creative Commons License

웹 항해일지.2009.05.24 - filesystem related.

웹항해일지 | 2009/05/24 22:02 | Posted by 똘똘이뚱뚱이아빠
== EXT4 File System related. ==

http://ext4.wiki.kernel.org/
http://www.ibm.com/developerworks/kr/library/l-ext4/index.html
http://en.wikipedia.org/wiki/Ext4
http://kernelnewbies.org/Ext4
http://www.bullopensource.org/ext4/
http://kerneltrap.org/node/6776

== Usage of EXT4 ==
http://nambaxa.textcube.com/tag/EXT4
http://mojolog.com/tcb/391

== General File System related ==
http://en.wikipedia.org/wiki/Comparison_of_file_systems
http://en.wikipedia.org/wiki/List_of_file_systems
저작자 표시 비영리 변경 금지
크리에이티브 커먼즈 라이선스
Creative Commons License

'웹항해일지' 카테고리의 다른 글

웹 항해일지.2009.05.24 - filesystem related.  (0) 2009/05/24
웹 항해일지.2009.05.14  (0) 2009/05/14
웹 항해일지.2009.03.31  (0) 2009/03/31
웹 항해일지.2009.03.27  (0) 2009/03/27
웹 항해일지. 2009.03.10  (0) 2009/03/10
웹 항해일지. 2008.08.13  (0) 2008/08/13

웹 항해일지.2009.05.14

웹항해일지 | 2009/05/14 15:00 | Posted by 똘똘이뚱뚱이아빠
Video related resource.

http://www.matroska.org/
http://en.wikipedia.org/wiki/Matroska
저작자 표시 비영리 변경 금지
크리에이티브 커먼즈 라이선스
Creative Commons License

'웹항해일지' 카테고리의 다른 글

웹 항해일지.2009.05.24 - filesystem related.  (0) 2009/05/24
웹 항해일지.2009.05.14  (0) 2009/05/14
웹 항해일지.2009.03.31  (0) 2009/03/31
웹 항해일지.2009.03.27  (0) 2009/03/27
웹 항해일지. 2009.03.10  (0) 2009/03/10
웹 항해일지. 2008.08.13  (0) 2008/08/13

클럽매드 빈탄 전경.

가족/여행 | 2009/05/13 16:50 | Posted by 똘똘이뚱뚱이아빠
지난 2009년 5월 1~5일 2009년의 유일한 황금연휴에 클럽매드 빈탄에 갔다왔다.
클럼매드 발리보다는 못했지만 괜찮았던 여행이였다...

전경을 찍은 동영상이 있는데 한번들 보시기를.. ^^

저작자 표시 비영리 변경 금지
크리에이티브 커먼즈 라이선스
Creative Commons License

'가족 > 여행' 카테고리의 다른 글

클럽매드 빈탄 전경.  (0) 2009/05/13

웹 항해일지.2009.03.31

웹항해일지 | 2009/03/31 17:50 | Posted by 똘똘이뚱뚱이아빠

요즘 가장 마음에 드는 번역자. :-).
http://jhrogue.blogspot.com/
그의 옛날 블로그
http://blog.yahoo.co.kr/jhrogue/
저작자 표시
크리에이티브 커먼즈 라이선스
Creative Commons License

'웹항해일지' 카테고리의 다른 글

웹 항해일지.2009.05.24 - filesystem related.  (0) 2009/05/24
웹 항해일지.2009.05.14  (0) 2009/05/14
웹 항해일지.2009.03.31  (0) 2009/03/31
웹 항해일지.2009.03.27  (0) 2009/03/27
웹 항해일지. 2009.03.10  (0) 2009/03/10
웹 항해일지. 2008.08.13  (0) 2008/08/13

웹 항해일지.2009.03.27

웹항해일지 | 2009/03/27 14:49 | Posted by 똘똘이뚱뚱이아빠
IPTV및 TV관련 사이트 괜찮다.

http://jeremy68.tistory.com/

http://iptv.commres.org/

http://arstechnica.com/hardware/news/2008/07/neuros-open-set-top-platform-puts-linux-in-living-rooms.ars

http://www.neurostechnology.com/
크리에이티브 커먼즈 라이선스
Creative Commons License

'웹항해일지' 카테고리의 다른 글

웹 항해일지.2009.05.14  (0) 2009/05/14
웹 항해일지.2009.03.31  (0) 2009/03/31
웹 항해일지.2009.03.27  (0) 2009/03/27
웹 항해일지. 2009.03.10  (0) 2009/03/10
웹 항해일지. 2008.08.13  (0) 2008/08/13
HD UCC에 대한 링크 적어 놓기.  (0) 2008/08/11

웹 항해일지. 2009.03.10

웹항해일지 | 2009/03/10 17:02 | Posted by 똘똘이뚱뚱이아빠
http://www.talk-with-hani.com/archives/857
-> 원고지 10장을 쓰는힘.
http://theonion.egloos.com/category/work%20-%20IT
-> 남아공 한국 아줌마의 영국 취업기 내용 읽어볼만함. 그리고 외국 회사생활도.

크리에이티브 커먼즈 라이선스
Creative Commons License

'웹항해일지' 카테고리의 다른 글

웹 항해일지.2009.03.31  (0) 2009/03/31
웹 항해일지.2009.03.27  (0) 2009/03/27
웹 항해일지. 2009.03.10  (0) 2009/03/10
웹 항해일지. 2008.08.13  (0) 2008/08/13
HD UCC에 대한 링크 적어 놓기.  (0) 2008/08/11
웹 항해일지. 2008.08.11  (0) 2008/08/11