openssl x509 -req -in local.csr -extensions v3_ca -signkey local.key -out local.crt
Signature ok
subject=C = FR, ST = FR, L = Surness, O = Talend, OU = Developer, CN = RD, emailAddress = aa@talend.com
Getting Private key
➜ zhengshu l
total 20K
drwxrwxr-x 2 oem oem 4.0K 11月 9 16:06 .
drwxr-xr-x 44 oem oem 4.0K 11月 9 16:06 ..
-rw-rw-r-- 1 oem oem 1.3K 11月 9 16:06 local.crt
-rw-rw-r-- 1 oem oem 1.1K 11月 9 16:04 local.csr
-rw------- 1 oem oem 1.7K 11月 9 16:02 local.key
➜ zhengshu openssl genrsa -out my_server.key 2040
Generating RSA private key, 2040 bit long modulus (2 primes)
...................+++++
..........+++++
e is 65537 (0x010001)