Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ~/Desktop/Studies/BezpKomp λ openssl version -a
- OpenSSL 1.0.2k 26 Jan 2017
- built on: reproducible build, date unspecified
- platform: darwin64-x86_64-cc
- options: bn(64,64) rc4(ptr,int) des(idx,cisc,16,int) idea(int) blowfish(idx)
- compiler: /usr/bin/clang -I. -I.. -I../include -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch x86_64 -O3 -DL_ENDIAN -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DECP_NISTZ256_ASM
- OPENSSLDIR: "/opt/local/etc/openssl"
- ~/Desktop/Studies/BezpKomp λ ls
- Lista3/
- ~/Desktop/Studies/BezpKomp λ cd Lista3
- ~/Desktop/Studies/BezpKomp/Lista3 λ ls
- ~/Desktop/Studies/BezpKomp/Lista3 λ clear
- ~/Desktop/Studies/BezpKomp/Lista3 λ openssl genrsa -des3 -out privkeyA.pem 2048
- Generating RSA private key, 2048 bit long modulus
- ............+++
- ....+++
- e is 65537 (0x10001)
- Enter pass phrase for privkeyA.pem:
- Verifying - Enter pass phrase for privkeyA.pem:
- ~/Desktop/Studies/BezpKomp/Lista3 λ openssl req -new -key privkeyA.pem -out certA.csr
- Enter pass phrase for privkeyA.pem:
- You are about to be asked to enter information that will be incorporated
- into your certificate request.
- What you are about to enter is what is called a Distinguished Name or a DN.
- There are quite a few fields but you can leave some blank
- For some fields there will be a default value,
- If you enter '.', the field will be left blank.
- -----
- Country Name (2 letter code) [AU]:PL
- State or Province Name (full name) [Some-State]:DOLNOSLASKI
- Locality Name (eg, city) []:WROCLAW
- Organization Name (eg, company) [Internet Widgits Pty Ltd]:.
- Organizational Unit Name (eg, section) []:.
- Common Name (e.g. server FQDN or YOUR name) []:JAKUBSAPOTA
- Email Address []:jsapota@gmail.com
- Please enter the following 'extra' attributes
- to be sent with your certificate request
- A challenge password []:jakub123
- An optional company name []:studia
- ~/Desktop/Studies/BezpKomp/Lista3 λ openssl genrsa -des3 -out privkeyB.pem 2048
- Generating RSA private key, 2048 bit long modulus
- ....+++
- ....................................................................................................+++
- e is 65537 (0x10001)
- Enter pass phrase for privkeyB.pem:
- Verifying - Enter pass phrase for privkeyB.pem:
- ~/Desktop/Studies/BezpKomp/Lista3 λ openssl req -new -x509 -key privkeyB.pem -out CAcert.crt -days 365
- Enter pass phrase for privkeyB.pem:
- You are about to be asked to enter information that will be incorporated
- into your certificate request.
- What you are about to enter is what is called a Distinguished Name or a DN.
- There are quite a few fields but you can leave some blank
- For some fields there will be a default value,
- If you enter '.', the field will be left blank.
- -----
- Country Name (2 letter code) [AU]:PL
- State or Province Name (full name) [Some-State]:DOLNOSLASKI
- Locality Name (eg, city) []:WROCLAW
- Organization Name (eg, company) [Internet Widgits Pty Ltd]:.
- Organizational Unit Name (eg, section) []:.
- Common Name (e.g. server FQDN or YOUR name) []:JAKUBSAPOTA
- Email Address []:jsapota@gmail.com
- ~/Desktop/Studies/BezpKomp/Lista3 λ openssl x509 -req -days 365 -in certA.csr -CA CAcert.crt -CAkey privkeyB.pem -set_serial 01 -out certA.crt
- Signature ok
- subject=/C=PL/ST=DOLNOSLASKI/L=WROCLAW/CN=JAKUBSAPOTA/emailAddress=jsapota@gmail.com
- Getting CA Private Key
- Enter pass phrase for privkeyB.pem:
- ~/Desktop/Studies/BezpKomp/Lista3 λ ls
- CAcert.crt certA.crt certA.csr info privkeyA.pem privkeyB.pem
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement