Openssl 편집하기
편집을 되돌릴 수 있습니다.
이 편집을 되돌리려면 아래의 바뀐 내용을 확인한 후 저장해주세요.
최신판 | 당신의 편집 | ||
3번째 줄: | 3번째 줄: | ||
===비밀번호 제거=== | ===비밀번호 제거=== | ||
− | + | openssl rsa -in key.pem.orig -out key.pem | |
− | ===파일 암복호화=== | + | ===개인키로 파일 암복호화=== |
+ | openssl rsautl -encrypt -inkey public.pem -pubin -in file.txt -out file.ssl; | ||
− | + | openssl rsautl -decrypt -inkey private.pem -in file.ssl -out decrypted.txt | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==공개키 생성== | ==공개키 생성== | ||
118번째 줄: | 109번째 줄: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | === | + | === pem을 crt로 변경 === |
− | |||
$ openssl x509 -in sample.pem -inform pem -out sample.crt | $ openssl x509 -in sample.pem -inform pem -out sample.crt | ||
− | |||
− | |||
[[분류:보안]] | [[분류:보안]] |