# 폴더생성
$ mkdir cert
# 폴더생성
$ mkdir cert
# openssl 설정파일 복사
$ cp /etc/ssl/openssl.cnf ./
# Private Key (비밀키) 생성
$ openssl req -x509 -days 730 -nodes -newkey rsa:2048 -outform der -keyout server.key -out ca.der -extensions v3_ca -config openssl.cnf
# der 포맷으로 변환
$ openssl rsa -in server.key -inform pem -out server.key.der -outform der
# pkcs8 포맷으로 변환
$ openssl pkcs8 -topk8 -in server.key.der -inform der -out server.key.pkcs8.der -outform der -nocrypt