기본 콘텐츠로 건너뛰기

라벨이 Tip인 게시물 표시

AAAA

AAAA AAA 정보보호기술 AAA Authentication: 신뢰성 있는 인증 Authorization: 권한 검증 Accounting: 과금 기능 위 기능을 체계적으로 제공하는 정보보호기술

where-is-execute-file

where-is-execute-file 리눅스 진단 시 프로세스 실행 파일 찾기 /proc/<PID>/ 경로에 가면 심볼릭 링크로 해당 프로세스가 실행된 실제 파일 경로를 확인할 수 있다. 활용하자.

code-sign

code-sign 전자 서명 테스트 1. 테스트 인증서 생성 pem Generating a private key $ openssl genrsa 2048 > private.pem Generating the self signed certificate $ openssl req -x509 -new -key private.pem -out public.pem If required, creating PFX $ openssl pkcs12 -export -in public.pem -inkey private.pem -out mycert.pfx crt 개인키 생성 $ openssl genrsa -des3 -out server.key 2048 인증요청서 생성 $ openssl req -new -key server.key -out server.csr 인증서 생성 $ openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt pfx 파일 생성 openssl pkcs12 -export -out server.pfx -inkey server.key -in server.crt [ -certfile more.crt ] 2. 전자 서명 적용 "C:\Program Files (x86)\Windows Kits\8.1\bin\x86\signtool.exe" sign /a /f mycert.pfx /p testpssword target.exe Done Adding Additional Store Successfully signed: target.exe ./Signtool.exe sign /a /f “{인증서 경로}” /p “{인증서 비밀번호}” /t “{인증서에 따른 Timestamp 서버 주소 예) http://timestamp.verisign.com/scripts/timestamp.dl

vi-editor-new-line

vi-editor-new-line VI 에디터에서 특정문자 개행문자로 수정 VI 에디터에서 "문자 찾아 바꾸기"를 위해 %s 를 많이 사용하게 된다. 개행 문자 제거 혹은 수정 시 변경할 대상으로 \n 를 입력하면 수정이 가능하지만, 특정 문자를 개행문자로 수정하기 위해서 \n 를 사용하면 ^@ 가 삽입되는 것을 확인할 수 있다. 그럴 때는 \n 대신 \r 을 사용하면 개행문자 삽입이 가능하다. Example ; 을 ;[개행 문자] 로 수정 :%s/;/;\r/g