Jump to content

ThanhBT

Active Members
  • Posts

    7
  • Joined

  • Last visited

About ThanhBT

  • Birthday September 11

Profile Information

  • Gender
    Male

Recent Profile Visitors

906 profile views

ThanhBT's Achievements

Newbie

Newbie (1/14)

  1. Thanks Sebkinne for your reply, I try follow to fix that but i have some issue With uhttpd restart it will make 2 files uhttpd.crt and uhttpd.key I have to convert key and crt to pem file with 2 command openssl x509 -inform DER -outform PEM -in uhttpd.crt -out uhttpd.crt.pem openssl rsa -inform DER -outform PEM -in uhttpd.key -out uhttpd.key.pem So change name uhttpd.key and uhttpd.crt to uhttpd_org.key, uhttpd_org.crt then convert again to make new uhttpd crt and key openssl rsa -in uhttpd.key.pem -outform DER -out uhttpd.key openssl x509 -in uhttpd.crt.pem -outform DER -out uhttpd.crt All proccess i had done root@Pineapple:/etc# /etc/init.d/uhttpd restart Generating RSA private key, 512 bit long modulus Generating selfsigned certificate with subject 'C=DE;ST=Berlin;L=Berlin;CN=OpenWrt;' and validity 2014-04-04 08:19:19-2016-04-03 08:19:19 root@Pineapple:/etc# openssl x509 -inform DER -outform PEM -in uhttpd.crt -out uhttpd.crt.pem root@Pineapple:/etc# openssl rsa -inform DER -outform PEM -in uhttpd.key -out uhttpd.key.pem writing RSA key root@Pineapple:/etc# mv uhttpd.key uhttpd_org.key root@Pineapple:/etc# mv uhttpd.crt uhttpd_crt.key root@Pineapple:/etc# openssl rsa -in uhttpd.key.pem -outform DER -out uhttpd.key writing RSA key root@Pineapple:/etc# openssl x509 -in uhttpd.crt.pem -outform DER -out uhttpd.crt Then restart uhttpd and try access https but problem still there.
  2. Hi everyone, I using Mark V and i want to https on uhttpd, so i try install uhttpd-mod-tls and luci-ssl then restart uhttpd root@Pineapple:~# /etc/init.d/uhttpd restart Generating RSA private key, 1024 bit long modulus Generating selfsigned certificate with subject 'C=DE;ST=Berlin;L=Berlin;CN=OpenWrt;' and validity 2014-03-24 12:03:50-2016-03-23 12:03:50 Then i try access to https://172.16.42.1 via web browser but i got messges (Error code: ssl_error_rx_record_too_long) This is my uhttpd config file # Server configuration config uhttpd main option 'index_page' 'index.php' option 'error_page' '/index.php' # HTTP listen addresses, multiple allowed list listen_http 0.0.0.0:80 # list listen_http [::]:80 # HTTPS listen addresses, multiple allowed list listen_https 0.0.0.0:443 # list listen_https [::]:443 # Server document root option home /www # Reject requests from RFC1918 IP addresses # directed to the servers public IP(s). # This is a DNS rebinding countermeasure. option rfc1918_filter 1 # Certificate and private key for HTTPS. # If no listen_https addresses are given, # the key options are ignored. option cert /etc/uhttpd.crt option key /etc/uhttpd.key # CGI url prefix, will be searched in docroot. # Default is /cgi-bin option cgi_prefix /cgi-bin # List of extension->interpreter mappings. # Files with an associated interpreter can # be called outside of the CGI prefix and do # not need to be executable. list interpreter ".php=/usr/bin/php-cgi" # list interpreter ".cgi=/usr/bin/perl" # Lua url prefix and handler script. # Lua support is disabled if no prefix given. # option lua_prefix /luci # option lua_handler /usr/lib/lua/luci/sgi/uhttpd.lua # CGI/Lua timeout, if the called script does not # write data within the given amount of seconds, # the server will terminate the request with # 504 Gateway Timeout response. option script_timeout 60 # Network timeout, if the current connection is # blocked for the specified amount of seconds, # the server will terminate the associated # request process. option network_timeout 30 # TCP Keep-Alive, send periodic keep-alive probes # over established connections to detect dead peers. # The value is given in seconds to specify the # interval between subsequent probes. # Setting this to 0 will disable TCP keep-alive. option tcp_keepalive 1 # Basic auth realm, defaults to local hostname # option realm OpenWrt # Certificate defaults for px5g key generator config cert px5g # Validity time option days 730 # RSA key size option bits 1024 # Location option country DE option state Berlin option location Berlin # Common name option commonname OpenWrt config uhttpd pineapple list listen_http 0.0.0.0:1471 option home /pineapple option index_page index.php option 'error_page' '/index.php' option no_dirlists 1 # Configuration file in busybox httpd format option config /etc/config/httpd.conf option rfc1918_filter 1 # Certificate and private key for HTTPS. # If no listen_https addresses are given, # the key options are ignored. option cert /etc/uhttpd.crt option key /etc/uhttpd.key # CGI url prefix, will be searched in docroot. # Default is /cgi-bin option cgi_prefix /cgi-bin # List of extension->interpreter mappings. # Files with an associated interpreter can # be called outside of the CGI prefix and do # not need to be executable. list interpreter ".php=/usr/bin/php-cgi" # CGI/Lua timeout, if the called script does not # write data within the given amount of seconds, # the server will terminate the request with # 504 Gateway Timeout response. option script_timeout 60 # Network timeout, if the current connection is # blocked for the specified amount of seconds, # the server will terminate the associated # request process. option network_timeout 30 # TCP Keep-Alive, send periodic keep-alive probes # over established connections to detect dead peers. # The value is given in seconds to specify the # interval between subsequent probes. # Setting this to 0 will disable TCP keep-alive. option tcp_keepalive 1 Anyone got same problem? How i can fix that, thanks for helping. p/s: i see 2 files uhttpd.crt and uhttpd.key has been created.
  3. i have a problem. I config: smser.conf account:trantra****@gmail.com password:********** number:849894***** gateway:mail2sms.vianett.com cmd1:echo hello world cmd2:whats going on cmd3:thanks but in smser.log 2014-01-04 17:05:29.366218 - Missing config file: /pineapple/components/infusions/smser/content/smser.conf 2014-01-04 17:05:29.373347 - Missing config file: /pineapple/components/infusions/smser/content/smser.conf Don't send sms, don't test, don't use ????? And, I start smser infusion but web interface don't start. It's disable Can you show me how to fix that?
  4. I had install Evil Portal and working fine in iOS, MacOS and Linux but in Windows i had problem with redirect after click image on nodogsplash page. Anyone got same problem?
  5. Hi everybody ! the first , sorry everybody because my english not good ! I have a wifi pineapple and a ALFA USB WiFi AWUS036NHA. i have a ideal. Karma use interface's wifi pineapple and Jammer excute in ALFA. But I can't do it. Please help me !
  6. Hi everybody ! the first , sorry everybody because my english not good. I have a problem with usb hub. I have a wifi pineapple and i put usb hub( the picture ) , but don't successfull . In dmesg show picture. Please help me. Thank you!
×
×
  • Create New...