Advertisement
flewkey

Untitled

Jan 28th, 2021 (edited)
851
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.41 KB | None | 0 0
  1. flewkey@basilisk /tmp/ssl $ ls
  2. keys.txt NWC.crt NWC.key WII_NWC_1_CERT.p12
  3. flewkey@basilisk /tmp/ssl $ openssl genrsa -out server.key 1024
  4. Generating RSA private key, 1024 bit long modulus (2 primes)
  5. ..........+++++
  6. ......+++++
  7. e is 65537 (0x010001)
  8. flewkey@basilisk /tmp/ssl $ openssl req -new -key server.key -out server.csr
  9. You are about to be asked to enter information that will be incorporated
  10. into your certificate request.
  11. What you are about to enter is what is called a Distinguished Name or a DN.
  12. There are quite a few fields but you can leave some blank
  13. For some fields there will be a default value,
  14. If you enter '.', the field will be left blank.
  15. -----
  16. Country Name (2 letter code) [AU]:
  17. State or Province Name (full name) [Some-State]:
  18. Locality Name (eg, city) []:
  19. Organization Name (eg, company) [Internet Widgits Pty Ltd]:
  20. Organizational Unit Name (eg, section) []:
  21. Common Name (e.g. server FQDN or YOUR name) []:*.*.*
  22. Email Address []:
  23.  
  24. Please enter the following 'extra' attributes
  25. to be sent with your certificate request
  26. A challenge password []:
  27. An optional company name []:
  28. flewkey@basilisk /tmp/ssl $ openssl x509 -req -in server.csr -CA NWC.crt -CAkey NWC.key -CAcreateserial -out server.crt -days 3650 -sha1
  29. Signature ok
  30. subject=C = AU, ST = Some-State, O = Internet Widgits Pty Ltd, CN = *.*.*
  31. Getting CA Private Key
  32. Enter pass phrase for NWC.key:
  33. 139912541861696:error:28078065:UI routines:UI_set_result_ex:result too small:crypto/ui/ui_lib.c:905:You must type in 4 to 1023 characters
  34. Enter pass phrase for NWC.key:
  35. flewkey@basilisk /tmp/ssl $ openssl x509 -in server.crt -noout -text
  36. Certificate:
  37. Data:
  38. Version: 1 (0x0)
  39. Serial Number:
  40. 7c:cd:c2:3d:e3:44:16:af:ef:1b:5b:9f:40:94:76:d3:ea:45:3d:c8
  41. Signature Algorithm: sha1WithRSAEncryption
  42. Issuer: C = US, ST = Washington, L = Redmond, O = Nintendo of America Inc., CN = Wii NWC Prod 1, emailAddress = ca@noa.nintendo.com
  43. Validity
  44. Not Before: Jan 28 20:14:24 2021 GMT
  45. Not After : Jan 26 20:14:24 2031 GMT
  46. Subject: C = AU, ST = Some-State, O = Internet Widgits Pty Ltd, CN = *.*.*
  47. Subject Public Key Info:
  48. Public Key Algorithm: rsaEncryption
  49. RSA Public-Key: (1024 bit)
  50. Modulus:
  51. 00:b8:57:3c:52:f2:9b:6e:52:bf:c5:7a:f5:59:8f:
  52. 45:17:ae:9c:7c:2a:35:66:e5:2f:7d:57:07:67:f6:
  53. 99:c8:4d:8c:ce:f7:b7:99:03:07:49:20:85:6b:ce:
  54. 21:2e:c4:c7:2f:03:22:41:44:2c:9b:1f:59:2f:1a:
  55. 8f:5a:82:73:05:cc:f6:d7:2e:8e:e4:a4:fb:92:4c:
  56. bc:c4:b1:50:ae:ba:4f:31:90:c1:4b:be:be:45:39:
  57. ba:a1:77:b4:0e:92:93:a2:e0:ba:13:7a:92:4d:bd:
  58. cf:bf:5a:3f:12:75:a1:44:17:41:56:ef:1c:db:7a:
  59. 84:74:b9:c6:35:b5:ed:3c:39
  60. Exponent: 65537 (0x10001)
  61. Signature Algorithm: sha1WithRSAEncryption
  62. 64:bd:92:73:41:b3:33:42:3a:ad:6f:71:09:0a:d0:0b:c2:e6:
  63. e8:77:74:10:3a:16:08:a0:f5:7b:df:94:32:6a:f4:b4:19:a5:
  64. 2e:f6:d7:87:8d:3c:da:c5:3d:44:85:f7:b0:92:c4:ba:b4:fb:
  65. 4c:82:17:50:18:73:75:46:d7:cf:74:77:93:61:f7:57:11:57:
  66. 8e:07:9e:e1:8b:8a:70:99:52:b6:60:c9:91:e3:07:70:9a:18:
  67. f1:6b:f8:05:6b:2f:80:fb:51:5f:42:f7:d1:10:b5:1d:94:25:
  68. e1:d1:4e:5e:80:53:cc:06:bd:92:dd:a2:f3:31:28:ae:51:ff:
  69. 81:b1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement