SHARE
TWEET

Untitled

a guest Jun 10th, 2017 563 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. As you're using ArchLinux, I need to update the packages on your system to install those I need.
  2. Not doing that could cause problems between dependencies, or missing files in repositories.
  3.  
  4. Continuing will update your installed packages and install needed ones.
  5. Continue ? [y/n]: y
  6. #!/bin/bash
  7. :: Synchronizing package databases...
  8.  core is up to date
  9.  extra is up to date
  10.  community                                                          3.8 MiB  4.98M/s 00:01 [####################################################] 100%
  11. warning: iptables-1.6.1-1 is up to date -- skipping
  12. warning: openssl-1.1.0.f-1 is up to date -- skipping
  13. warning: wget-1.19.1-2 is up to date -- skipping
  14. warning: ca-certificates-20170307-1 is up to date -- skipping
  15. warning: curl-7.54.0-3 is up to date -- skipping
  16. :: Starting full system upgrade...
  17. resolving dependencies...
  18. looking for conflicting packages...
  19.  
  20. Packages (1) openvpn-2.4.2-1
  21.  
  22. Total Installed Size:  1.00 MiB
  23.  
  24. :: Proceed with installation? [Y/n]
  25. (1/1) checking keys in keyring                                                             [####################################################] 100%
  26. (1/1) checking package integrity                                                           [####################################################] 100%
  27. (1/1) loading package files                                                                [####################################################] 100%
  28. (1/1) checking for file conflicts                                                          [####################################################] 100%
  29. (1/1) checking available disk space                                                        [####################################################] 100%
  30. :: Processing package changes...
  31. (1/1) installing openvpn                                                                   [####################################################] 100%
  32. Optional dependencies for openvpn
  33.     easy-rsa: easy CA and certificate handling
  34. :: Running post-transaction hooks...
  35. (1/2) Creating temporary files...
  36. (2/2) Arming ConditionNeedsUpdate...
  37. --2017-06-10 21:50:15--  https://github.com/OpenVPN/easy-rsa/releases/download/3.0.1/EasyRSA-3.0.1.tgz
  38. Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
  39. Resolving github.com... 192.30.253.112, 192.30.253.113
  40. Connecting to github.com|192.30.253.112|:443... connected.
  41. HTTP request sent, awaiting response... 302 Found
  42. Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/4519663/9dab10e8-7b6a-11e5-91af-0660987e9192?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20170610%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170610T215015Z&X-Amz-Expires=300&X-Amz-Signature=3d8c03598e3060ecd7030cd0d57d59685a5555b2f6c4d69aa0403ffdba6ab22f&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3DEasyRSA-3.0.1.tgz&response-content-type=application%2Foctet-stream [following]
  43. --2017-06-10 21:50:15--  https://github-production-release-asset-2e65be.s3.amazonaws.com/4519663/9dab10e8-7b6a-11e5-91af-0660987e9192?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20170610%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170610T215015Z&X-Amz-Expires=300&X-Amz-Signature=3d8c03598e3060ecd7030cd0d57d59685a5555b2f6c4d69aa0403ffdba6ab22f&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3DEasyRSA-3.0.1.tgz&response-content-type=application%2Foctet-stream
  44. Resolving github-production-release-asset-2e65be.s3.amazonaws.com... 52.216.16.160
  45. Connecting to github-production-release-asset-2e65be.s3.amazonaws.com|52.216.16.160|:443... connected.
  46. HTTP request sent, awaiting response... 200 OK
  47. Length: 40960 (40K) [application/octet-stream]
  48. Saving to: ‘/root/EasyRSA-3.0.1.tgz’
  49.  
  50. /root/EasyRSA-3.0.1.tgz               100%[=======================================================================>]  40.00K  35.1KB/s    in 1.1s    
  51.  
  52. 2017-06-10 21:50:16 (35.1 KB/s) - ‘/root/EasyRSA-3.0.1.tgz’ saved [40960/40960]
  53.  
  54.  
  55. Note: using Easy-RSA configuration from: ./vars
  56.  
  57. init-pki complete; you may now create a CA or requests.
  58. Your newly created PKI dir is: /etc/openvpn/easy-rsa/pki
  59.  
  60. Generating a 2048 bit RSA private key
  61. .................+++
  62. ...............+++
  63. writing new private key to '/etc/openvpn/easy-rsa/pki/private/ca.key.Sm30yosQlD'
  64. -----
  65. Generating DH parameters, 2048 bit long safe prime, generator 2
  66. This is going to take a long time
  67. ....................................+.............................................................................................................................................................+......................................................................................................+....................+...............................+.............................................................................................................+.............................+....................+...............................................................................+............................................................................................................................................................+.................................................................................+...................................................................+......................................................................................................................................................................................+................+....+.............................................................................................................................................................................................................................+......................+.+.....................................................+...............................................+...............................................................................................+.............................................................................+.........................+......................................................................................................................................+.....+.................+...........................................................................................................................................................................................+...........................+.....................................................................................................................................................................................................................................................................................................+..................................................+...................................................................+.................................+.......+..................................................................+...................................................+...............................................................................................................................................................................................................+................+.............................................................................................+........................+..............................................................................+.......................................................................+............+...........................................................................................+..............................................................................+................................+..........................................................................................................................+..........................+.............................................+.....................................+................................................................................................................................................................................................................................................................................................................................................+...................................................................................................................+.......................................................................+...............................................................................................................+...............+..................+..................................................................................................+.................................................................................................................+...........................................+......+.......................................................................................................+................................+........................................+........................................................................................................................................................................................................................................................................................................................................................................................................................++*++*
  68. -----BEGIN DH PARAMETERS-----
  69. MIIBCAKCAQEA3vd+0rZCUAqDmaaNlbEVCsX2WJp+bfJteRW/+Smz/08ZgD3NzkFy
  70. zoBZhC3OWat957mKIrEYhZ8YkCokdGI/p0dI5K/RRXVKxQdTIQmb4cQEybUEdHmk
  71. aIwLgy1RJwN/pW9EEjlo0TTc6Tc2wv89K9HVmrfP+pbI+yMcF00Y+6Bnw7gM8ap+
  72. h6oNgYJaXkP0DLI59PI9IDpQGD04gGxgtGvhyFTgA5nfxBwNj11HEfEfEj2CRy6D
  73. IZHTY7yYcZV8dh/MeSoj3MaKJRrrncXFYaIiJG5QekNkd/MRB8EwmyigxsU2Y9Qd
  74. WEqLBsvCDX7SyFUQMjqQiJAmaSbFWziViwIBAg==
  75. -----END DH PARAMETERS-----
  76.  
  77. Note: using Easy-RSA configuration from: ./vars
  78. Generating a 2048 bit RSA private key
  79. ...................................................................................+++
  80. ..........................................+++
  81. writing new private key to '/etc/openvpn/easy-rsa/pki/private/server.key.P0njanI8Bi'
  82. -----
  83. Using configuration from /etc/openvpn/easy-rsa/openssl-1.0.cnf
  84. Can't open /etc/openvpn/easy-rsa/pki/index.txt.attr for reading, No such file or directory
  85. 139758895071104:error:02001002:system library:fopen:No such file or directory:crypto/bio/bss_file.c:74:fopen('/etc/openvpn/easy-rsa/pki/index.txt.attr','r')
  86. 139758895071104:error:2006D080:BIO routines:BIO_new_file:no such file:crypto/bio/bss_file.c:81:
  87. Check that the request matches the signature
  88. Signature ok
  89. The Subject's Distinguished Name is as follows
  90. commonName            :ASN.1 12:'server'
  91. Certificate is to be certified until Jun  8 21:51:04 2027 GMT (3650 days)
  92.  
  93. Write out database with 1 new entries
  94. Data Base Updated
  95.  
  96. Note: using Easy-RSA configuration from: ./vars
  97. Generating a 2048 bit RSA private key
  98. ...................................................................................................................+++
  99. .......................+++
  100. writing new private key to '/etc/openvpn/easy-rsa/pki/private/BassoPTLinode.key.FknmiJkGtU'
  101. -----
  102. Using configuration from /etc/openvpn/easy-rsa/openssl-1.0.cnf
  103. Check that the request matches the signature
  104. Signature ok
  105. The Subject's Distinguished Name is as follows
  106. commonName            :ASN.1 12:'BassoPTLinode'
  107. Certificate is to be certified until Jun  8 21:51:04 2027 GMT (3650 days)
  108.  
  109. Write out database with 1 new entries
  110. Data Base Updated
  111.  
  112. Note: using Easy-RSA configuration from: ./vars
  113. Using configuration from /etc/openvpn/easy-rsa/openssl-1.0.cnf
  114.  
  115. An updated CRL has been created.
  116. CRL file: /etc/openvpn/easy-rsa/pki/crl.pem
  117.  
  118. cp: cannot stat 'dh.pem': No such file or directory
  119. 2012
  120. Failed to restart openvpn@server.service: Unit openvpn@server.service not found.
  121. Failed to enable unit: File openvpn@server.service: No such file or directory
  122.  
  123. Finished!
  124.  
  125. Your client config is available at ~
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top