기타 개발관련2016. 1. 27. 10:31


대한민국에서 개인정보를 입력받는 모든 홈페이지 및 쇼핑몰 에서는 


정보통신망법에 의하여 보안서버(SSL인증서)를 설치해야만 합니다.


강제사항 이라서 어쩔수없이 하긴 하지만 구매하려니 여간 아까운게 아닙니다.


인증서의 가격도 천차만별 이어서 똑같은 인증서라도 1만원대 부터 6만원까지 받는곳도 있습니다.


그럼 비싸다고 좋은것이냐?.. 그렇지도 않습니다.


어차피 최상위 인증 기관인 ROOT CA 에서 발급받는 것이기 때문에 동일한 인증서입니다.


비싼건 그냥 판매하는 업체의 마케팅 비용 및 기술지원 등 운영 비용을 포함한 업체 마진입니다.


최대한 싸게 파는곳에서 사는게 유리합니다.




아래는 인증서 판매하는곳들을 비교해본 결과 가장 저렴하다고 보여지는 사이트입니다.



comodo positive ssl 인증서 기준


해외에서 가장 저렴한 곳  - $8.95/1년

https://www.gogetssl.com/

3년 구매시 $13.15 ($4.38/1년)



국내에서 가장 저렴한곳 - 14,000원/1년

https://www.qtrustssl.com/

3년 구매시 31,500원 (10,500원/1년)


Posted by requireme
기타 개발관련2016. 1. 27. 10:09


※ COMODO Positive SSL 인증서 

Domain validated, 2048 bit Industry Standard SSL Certificate

Immediate "No Hassle" SSL certificate issuance 24/7

Unlimited server licenses

Automated validation - no paperwork

Risk free 30 day refund policy

Unlimited Re-issuance Policy

Trusted by all popular browsers with 99.9% Ubiquity

$10,000 Relying Party Warranty

Single Domain Name (FQDN) domain.com and www.domain.com

256 bit Encryption

FREE site seal



※ COMODO Essential SSL 인증서

Domain validated, 2048 bit Industry Standard SSL Certificate

Immediate "No Hassle" SSL certificate issuance 24/7

Unlimited server licenses

Automated validation - no paperwork

Risk FREE 30 day refund policy

Unlimited Re-issuance Policy

Trusted by all popular browsers with 99.9% Ubiquity

$10,000 Relying Party Warranty

Single Domain Name (FQDN) domain.com and www.domain.com

256 bit Encryption

FREE site seal

FREE EV Upgrade

FREE PCI scanning, FREE daily website scanning

FREE 24/7 Technical Support



출처 : https://www.qtrustssl.com/board/view.php?code=faq&sq=11

Posted by requireme
기타 개발관련2015. 12. 18. 16:43


1. PKCS(.pfx) 

 - 윈도우 IIS 에서 사용되는 키와 인증서가 포함된 파일


2. apache 용 인증서

 - .crt : 텍스트 형식의 인증서 파일

 - .key : 텍스트 형식의 키파일


3. pfx -> crt

root]~]# openssl pkcs12 -in filename.pfx -nocerts -out filename.key # 키파일 추출
root]~]# openssl pkcs12 -in filename.pfx -nokeys -clcerts -out filename.crt # 인증서파일 추출
root]~]# openssl pkcs12 -in filename.pfx -nocerts -chain -out filename.crt # 체인인증서 추출


4. crt -> pfx

root]~]#  openssl pkcs12 -inkey aaa.key -in aaa.crt -certfile ChainCA.crt -export -out cert.pfx


5. pfx -> jks

keytool -importkeystore -srckeystore cert.pfx -srcstoretype pkcs12 -destkeystore cert.jks -deststoretype jks



6. jks 정보 확인방법

keytool -list -keystore cert.jks -rfc




# SSL 인증서 최저가

https://www.qtrustssl.com/ssl/index.php

comodo positive SSL 인증서가 무려 14,000원

Posted by requireme
Linux2015. 12. 11. 16:30



1. MariaDB 설치
root]~]# yum install mariadb mariadb-server mysql
root]~]# systemctl restart mariadb
root]~]# systemctl enable mariadb



2. MariaDB 기본 보안설정
root]~]# mysql_secure_installation
 - root password 설정
 - 익명 사용자 제거
 - 원격 로그인 제거
 - test DB 제거
 - 변경사항 적용



3. NginX를 위한 repo 등록
root]~]# rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm



4. NginX 설치, 실행 및 서비스 등록
root]~]# yum install nginx
root]~]# nginx -t
root]~]# systemctl restart nginx
root]~]# systemctl enable nginx



5. php-fpm 설치
root]~]# yum install php php-fpm php-mysql

5. nginx 관련 파일 권한 변경
root]~]# chown nginx:root -R /var/log/php-fpm/
root]~]# chown root:nginx -R /var/lib/php/
root]~]# cp /etc/php-fpm.d/www.conf /etc/php-fpm.d/www.conf.org        # 원본복사
root]~]# vi /etc/php-fpm.d/www.conf
#listen = 127.0.0.1:9000
listen = /var/run/php-fpm/php-fpm.sock

#user = apache

user = nginx

#group = apache

group = nginx





5. php-fpm 설치
root]~]# yum install php php-fpm php-mysql
root]~]# systemctl restart php-fpm
root]~]# systemctl enable php-fpm


'Linux' 카테고리의 다른 글

CentOS에 Tibero5 설치  (0) 2017.02.10
CentOS jdk1.7 설치, java 설치  (0) 2017.02.07
리눅스 쉘에서 폰트 색상 바꾸기  (0) 2015.12.11
CentOS7 minimal 설치 후 초기 설정  (0) 2015.12.10
NSF 설치 및 설정  (0) 2015.06.24
Posted by requireme
Linux2015. 12. 11. 15:07


1. /etc/DIR_COLORS 파일 수정
root]~]# vi /etc/DIR_COLORS
* 디렉토리의 진한 파랑색을 변경할 경우 
#DIR 01;34   #directory    // 주석처리 
DIR 01;33   #directory   // 노란색으로 변경함.



2. 저장 후 변경사항 적용하기
root]~]# eval "$(dircolors /etc/DIR_COLORS)"



'Linux' 카테고리의 다른 글

CentOS jdk1.7 설치, java 설치  (0) 2017.02.07
CentOS7 에서 MariaDB + NginX + PHP-FPM  (0) 2015.12.11
CentOS7 minimal 설치 후 초기 설정  (0) 2015.12.10
NSF 설치 및 설정  (0) 2015.06.24
apache에서 mp4 스트리밍하기  (0) 2014.03.07
Posted by requireme
Linux2015. 12. 10. 18:14


1. minimal 설치 후에는 네트워크 설정부터 해야한다.
root]~]# nmcli d
enp0s3 장치의 status 가 disconnected 라면 네트워크 설정이 되어있지 않은 상태이다.


2. 네트워크 설정
root]~]# vi /etc/sysconfig/network-scripts/ifcfg-enp0s3
IPADDR=192.168.1.201
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
DNS1=8.8.4.4
.... 생략....
ONBOOT=yes

** GUI 모드에서의 수정
root]~]# nmtui



3. 네크워크 서비스 재시작 및 ip 확인
root]~]# service network restart; ip a


4. yum update
root]~]# yum update -y



5. 자주쓰는 패키지 설치
root]~]# yum install net-tools ftp nmap elinks psmisc



Posted by requireme
Linux2015. 6. 24. 13:10



1. 서버에 NFS 패키지 설치
root]~]# yum -y install nfs-utils nfs-utils-lib


2. NFS 설정 - port설정 주석해제
root]~]# vi /etc/sysconfig/nfs
LOCKD_TCPPORT=32803
LOCKD_UDPPORT=32769
MOUNTD_PORT=892
RQUOTAD_PORT=875
STATD_PORT=662
STATD_OUTGOING_PORT=2020


3. 공유 디렉토리 설정
root]~]# vi /etc/exports
/data/nfs_dir 192.168.122.0/24(rw,sync,no_root_squash)


4. 방화벽 설정 - iptables
root]~]# vi /etc/sysconfig/iptables
-A INPUT -m state --state NEW -m udp -p udp --dport 2049 -j ACCEPT 
-A INPUT -m state --state NEW -m tcp -p tcp --dport 2049 -j ACCEPT 
-A INPUT -m state --state NEW -m udp -p udp --dport 111 -j ACCEPT 
-A INPUT -m state --state NEW -m tcp -p tcp --dport 111 -j ACCEPT 
-A INPUT -m state --state NEW -m udp -p udp --dport 32769 -j ACCEPT 
-A INPUT -m state --state NEW -m tcp -p tcp --dport 32803 -j ACCEPT 
-A INPUT -m state --state NEW -m udp -p udp --dport 892 -j ACCEPT 
-A INPUT -m state --state NEW -m tcp -p tcp --dport 892 -j ACCEPT 
-A INPUT -m state --state NEW -m udp -p udp --dport 875 -j ACCEPT 
-A INPUT -m state --state NEW -m tcp -p tcp --dport 875 -j ACCEPT 
-A INPUT -m state --state NEW -m udp -p udp --dport 662 -j ACCEPT 
-A INPUT -m state --state NEW -m tcp -p tcp --dport 662 -j ACCEPT

5. 방화벽 설정 적용
root]~]# service iptables restart


6. NFS 서비스 시작
root]~]# service rpcbind start
root]~]# service nfslock start
root]~]# service nfs start


7. 클라이언트 - 패키지 설치
root]~]# yum -y install nfs-utils nfs-utils-lib

8. 클라이언트 - portmap 서비스 시작 (mount.nfs: Input/output error 오류시 portmap start)
root]~]# service portmap start


9. 클라이언트 - mount
root]~]# mkdir /nfs_dir
root]~]# mount -t nfs 192.168.1.5:/home/nfs_dir  /nfs_dir


'Linux' 카테고리의 다른 글

리눅스 쉘에서 폰트 색상 바꾸기  (0) 2015.12.11
CentOS7 minimal 설치 후 초기 설정  (0) 2015.12.10
apache에서 mp4 스트리밍하기  (0) 2014.03.07
SSL 인증서 비밀번호 제거하는 방법  (0) 2013.06.07
PHP5 설치  (0) 2010.10.28
Posted by requireme
기타 개발관련2015. 4. 24. 11:45


UTF-8 페이지에서 사용할것.


한글, 특수문자도 잘됨. 


<%

FUNCTION URLDecode(str)

'// This function:

'// - decodes any utf-8 encoded characters into unicode characters eg. (%C3%A5 = å)

'// - replaces any plus sign separators with a space character

'//

'// IMPORTANT:

'// Your webpage must use the UTF-8 character set. Easiest method is to use this META tag:

'// <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

'//

    Dim objScript

    Set objScript = Server.CreateObject("ScriptControl")

    objScript.Language = "JavaScript"

    URLDecode = objScript.Eval("decodeURIComponent(""" & str & """.replace(/\+/g,"" ""))")

    Set objScript = NOTHING

END FUNCTION


aa = "한글 썄헇 다횋뛣韓初めまして。婦妇廣→广Dedicăm talentul şi tehnologia noastră pentru a crea produse şi"

bb = Server.URLEncode(aa)

cc = URLDecode(bb)


Response.write aa &"<br>"

Response.write bb &"<br>"

Response.write cc &"<br>"


%>


Posted by requireme
Linux2014. 3. 7. 14:08



##### APM 컴파일 설치시  #####

cd /usr/local/src
wget http://h264.code-shop.com/download/apache_mod_h264_streaming-2.2.7.tar.gz
tar -zxvf apache_mod_h264_streaming-2.2.7.tar.gz
cd mod_h264_streaming-2.2.7
./configure --with-apxs='/usr/local/apache/bin/apxs'
make
make install

# so파일 있는지 확인
ll /usr/local/apache/modules/mod_h264_streaming.so

 

# httpd.conf 파일 수정 #
LoadModule h264_streaming_module modules/mod_h264_streaming.so
AddHandler h264-streaming.extensions .mp4

 

 

 

##### APM rpm 설치시 #####
cd /usr/local/src
wget http://h264.code-shop.com/download/apache_mod_h264_streaming-2.2.7.tar.gz
tar -zxvf apache_mod_h264_streaming-2.2.7.tar.gz
cd mod_h264_streaming-2.2.7
find / -name "*apxs*"
./configure --with-apxs='/usr/sbin/apxs'
make
make install
# so파일 있는지 확인
ll /etc/httpd/modules/mod_h264_streaming.so


# httpd.conf 파일 수정 #
LoadModule h264_streaming_module modules/mod_h264_streaming.so
AddHandler h264-streaming.extensions .mp4

'Linux' 카테고리의 다른 글

CentOS7 minimal 설치 후 초기 설정  (0) 2015.12.10
NSF 설치 및 설정  (0) 2015.06.24
SSL 인증서 비밀번호 제거하는 방법  (0) 2013.06.07
PHP5 설치  (0) 2010.10.28
아파치 설치  (0) 2010.10.28
Posted by requireme
기타 개발관련2013. 9. 17. 12:26


https://support.msn.com/eform.aspx?productKey=edfsmsbl2&ct=eformts

 

 

 

요청서를 보내면 검토후 처리해준다.

 

 

 

Posted by requireme