Is There A Way To Change The Ssl Certificate In Btsync 2.0?


Recommended Posts

Hello, I need to know if the SSL certificate can be changed. I have a Synology DS1813+ and the latest BTSYNC installed. I found that the "settings.dat" file located at "/volume1/@appstore/bittorrentsync/var" has the current SSL certificate with the private key that is self signed. I have encrypted and unencrypted versions of my SSL certificate that I use on my Synology for HTTPS. I was going to try and use them but they are different lengths. If this can't be done with the current version, could it be implemented in a new version?

 

The reason is I have my Synology force HTTPS and chrome gives an error due to the self signed SSL certificate.

Link to comment
Share on other sites

  • 3 weeks later...

I'm not completely up-to-date with tweaking BTSync 2.0 but I have created an automated deployment template for Amazon CloudFormation for BTSync 1.4. In that version, its SSL settings are determined by the variables ssl_certificate and ssl_private_key which point to the plaintext certificate and its plaintext private key, respectively. I imagine this same tactic can be used with BTSync 2.0 on Synology.

 

Check out the template at https://github.com/willjasen/rainstash as it may be of some further assistance.

Link to comment
Share on other sites

Thanks for the reply. I looked at the template but it didn't really help me. I think a developer will have to answer this. Here is a hex dump of the settings.dat file.

Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F00000000 64 31 30 3A 2E 66 69 6C 65 67 75 61 72 64 34 30 d10:.fileguard4000000010 3A 35 38 37 31 33 45 33 45 31 30 41 46 30 44 45 :58713E3E10AF0DE00000020 31 46 37 42 36 35 42 39 32 34 33 31 44 44 43 43 1F7B65B92431DDCC00000030 33 43 33 36 30 43 44 41 33 32 34 3A 61 67 72 65 3C360CDA324:agre00000040 65 64 5F 75 73 65 72 74 65 72 6D 73 5F 76 65 72 ed_userterms_ver00000050 73 69 6F 6E 69 31 65 34 3A 61 73 73 7A 69 30 65 sioni1e4:asszi0e00000060 39 3A 62 69 6E 64 5F 70 6F 72 74 69 35 39 30 36 9:bind_porti590600000070 34 65 37 3A 62 6F 72 6E 5F 6F 6E 69 30 65 31 34 4e7:born_oni0e1400000080 3A 62 6F 72 6E 5F 6F 6E 5F 72 65 6D 6F 74 65 69 :born_on_remotei00000090 30 65 31 37 3A 63 68 65 63 6B 5F 75 70 64 61 74 0e17:check_updat000000A0 65 5F 62 65 74 61 69 30 65 31 31 3A 63 6F 6D 70 e_betai0e11:comp000000B0 75 74 65 72 5F 69 64 31 36 3A 33 63 38 43 67 37 uter_id16:3c8Cg7000000C0 6B 4F 38 36 4C 31 5F 4E 45 54 31 39 3A 64 61 69 kO86L1_NET19:dai000000D0 6C 79 5F 64 6F 77 6E 6C 6F 61 64 5F 68 69 73 74 ly_download_hist000000E0 32 34 38 3A 00 00 00 00 00 00 00 00 00 00 00 00 248:............000000F0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................00000100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................00000110 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................00000120 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................00000130 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................00000140 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................00000150 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................00000160 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................00000170 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................00000180 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................00000190 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................000001A0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................000001B0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................000001C0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................000001D0 00 00 00 00 00 00 00 00 00 00 00 00 32 35 3A 64 ............25:d000001E0 61 69 6C 79 5F 6C 6F 63 61 6C 5F 64 6F 77 6E 6C aily_local_downl000001F0 6F 61 64 5F 68 69 73 74 32 34 38 3A 00 00 00 00 oad_hist248:....00000200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................00000210 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................00000220 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................00000230 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................00000240 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................00000250 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................00000260 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................00000270 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................00000280 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................00000290 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................000002A0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................000002B0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................000002C0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................000002D0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................000002E0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................000002F0 00 00 00 00 32 33 3A 64 61 69 6C 79 5F 6C 6F 63 ....23:daily_loc00000300 61 6C 5F 75 70 6C 6F 61 64 5F 68 69 73 74 32 34 al_upload_hist2400000310 38 3A 00 00 00 00 00 00 00 00 00 00 00 00 00 00 8:..............00000320 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................00000330 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................00000340 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................00000350 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................00000360 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................00000370 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................00000380 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................00000390 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................000003A0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................000003B0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................000003C0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................000003D0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................000003E0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................000003F0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................00000400 00 00 00 00 00 00 00 00 00 00 31 37 3A 64 61 69 ..........17:dai00000410 6C 79 5F 75 70 6C 6F 61 64 5F 68 69 73 74 32 34 ly_upload_hist2400000420 38 3A 00 00 00 00 00 00 00 00 00 00 00 00 00 00 8:..............00000430 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................00000440 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................00000450 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................00000460 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................00000470 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................00000480 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................00000490 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................000004A0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................000004B0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................000004C0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................000004D0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................000004E0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................000004F0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................00000500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................00000510 00 00 00 00 00 00 00 00 00 00 31 39 3A 64 69 73 ..........19:dis00000520 70 6C 61 79 5F 6E 65 77 5F 76 65 72 73 69 6F 6E play_new_version00000530 69 30 65 33 3A 66 67 74 69 30 65 32 30 3A 66 6F i0e3:fgti0e20:fo00000540 6C 64 65 72 73 5F 73 74 6F 72 61 67 65 5F 70 61 lders_storage_pa00000550 74 68 31 35 3A 2F 76 6F 6C 75 6D 65 31 2F 42 54 th15:/volume1/BT00000560 53 59 4E 43 31 32 3A 69 6E 73 74 61 6C 6C 5F 74 SYNC12:install_t00000570 69 6D 65 69 31 34 33 38 38 30 31 31 36 34 65 36 imei1438801164e600000580 3A 69 73 5F 61 6F 64 69 30 65 32 34 3A 69 73 5F :is_aodi0e24:is_00000590 66 69 72 73 74 72 75 6E 5F 77 69 6E 64 6F 77 5F firstrun_window_000005A0 73 68 6F 77 6E 69 31 65 32 34 3A 69 73 5F 77 65 showni1e24:is_we000005B0 62 75 69 5F 63 72 65 64 65 6E 74 69 61 6C 73 5F bui_credentials_000005C0 73 65 74 69 31 65 32 30 3A 69 73 70 2E 70 65 65 seti1e20:isp.pee000005D0 72 5F 70 6F 6C 69 63 79 5F 65 78 70 79 69 31 34 r_policy_expyi14000005E0 34 30 36 34 31 38 34 38 65 33 3A 6C 69 74 69 30 40641848e3:liti0000005F0 65 31 30 3A 6C 69 74 5F 72 65 6D 6F 74 65 69 30 e10:lit_remotei000000600 65 38 3A 6C 6F 67 5F 73 69 7A 65 69 31 30 30 65 e8:log_sizei100e00000610 33 3A 6C 73 63 69 30 65 31 35 3A 6D 61 69 6E 57 3:lsci0e15:mainW00000620 6E 64 4C 6F 63 61 74 69 6F 6E 31 36 3A 00 00 00 ndLocation16:...00000630 00 00 00 00 00 00 00 00 00 00 00 00 00 31 39 3A .............19:00000640 6D 64 5F 61 75 74 6F 5F 61 64 64 5F 66 6F 6C 64 md_auto_add_fold00000650 65 72 73 69 30 65 31 35 3A 6E 6F 74 69 66 79 5F ersi0e15:notify_00000660 63 6F 6D 70 6C 65 74 65 69 30 65 31 36 3A 6F 66 completei0e16:of00000670 66 65 72 5F 6C 61 73 74 5F 73 68 6F 77 6E 69 30 fer_last_showni000000680 65 38 3A 70 65 61 6B 72 61 74 65 64 39 3A 72 61 e8:peakrated9:ra00000690 74 65 5F 64 61 74 61 30 3A 65 37 3A 70 65 65 72 te_data0:e7:peer000006A0 5F 69 64 32 30 3A 10 F4 B2 3A 48 FC E8 40 CF 2C _id20:.ô²:Hüè@Ï,000006B0 CD 0F FE 9B 1C 4E B8 97 D3 53 39 3A 70 72 6F 78 Í.þ›.N¸—ÓS9:prox000006C0 79 2E 70 32 70 69 31 65 32 3A 72 74 69 31 30 37 y.p2pi1e2:rti107000006D0 35 33 37 33 65 31 35 3A 72 75 6E 73 5F 73 69 6E 5373e15:runs_sin000006E0 63 65 5F 62 6F 72 6E 69 31 30 65 31 38 3A 72 75 ce_borni10e18:ru000006F0 6E 74 69 6D 65 5F 73 69 6E 63 65 5F 62 6F 72 6E ntime_since_born00000700 69 33 34 36 30 37 31 38 65 34 3A 73 64 75 72 69 i3460718e4:sduri00000710 30 65 38 3A 73 65 6C 66 63 65 72 74 31 38 31 36 0e8:selfcert181600000720 3A 2D 2D 2D 2D 2D 42 45 47 49 4E 20 43 45 52 54 :-----BEGIN CERT00000730 49 46 49 43 41 54 45 2D 2D 2D 2D 2D 0A 4D 49 49 IFICATE-----.MII00000740 43 62 54 43 43 41 64 61 67 41 77 49 42 41 67 49 CbTCCAdagAwIBAgI00000750 45 55 44 48 6B 38 54 41 4E 42 67 6B 71 68 6B 69 EUDHk8TANBgkqhki00000760 47 39 77 30 42 41 51 55 46 41 44 42 37 4D 51 73 G9w0BAQUFADB7MQs00000770 77 43 51 59 44 56 51 51 47 45 77 4A 56 0A 55 7A wCQYDVQQGEwJV.Uz00000780 45 4C 4D 41 6B 47 41 31 55 45 43 41 77 43 51 30 ELMAkGA1UECAwCQ000000790 45 78 46 6A 41 55 42 67 4E 56 42 41 63 4D 44 56 ExFjAUBgNVBAcMDV000007A0 4E 68 62 69 42 47 63 6D 46 75 59 32 6C 7A 59 32 NhbiBGcmFuY2lzY2000007B0 38 78 45 7A 41 52 42 67 4E 56 42 41 6F 4D 0A 43 8xEzARBgNVBAoM.C000007C0 6B 4A 70 64 46 52 76 63 6E 4A 6C 62 6E 51 78 47 kJpdFRvcnJlbnQxG000007D0 44 41 57 42 67 4E 56 42 41 73 4D 44 30 4A 70 64 DAWBgNVBAsMD0Jpd000007E0 46 52 76 63 6E 4A 6C 62 6E 51 67 55 33 6C 75 59 FRvcnJlbnQgU3luY000007F0 7A 45 59 4D 42 59 47 41 31 55 45 41 77 77 50 0A zEYMBYGA1UEAwwP.00000800 51 6D 6C 30 56 47 39 79 63 6D 56 75 64 43 42 54 Qml0VG9ycmVudCBT00000810 65 57 35 6A 4D 42 34 58 44 54 45 31 4D 44 63 7A eW5jMB4XDTE1MDcz00000820 4D 54 45 35 4D 44 45 77 4E 56 6F 58 44 54 45 32 MTE5MDEwNVoXDTE200000830 4D 44 67 77 4E 44 45 35 4D 44 45 77 4E 56 6F 77 MDgwNDE5MDEwNVow00000840 0A 65 7A 45 4C 4D 41 6B 47 41 31 55 45 42 68 4D .ezELMAkGA1UEBhM00000850 43 56 56 4D 78 43 7A 41 4A 42 67 4E 56 42 41 67 CVVMxCzAJBgNVBAg00000860 4D 41 6B 4E 42 4D 52 59 77 46 41 59 44 56 51 51 MAkNBMRYwFAYDVQQ00000870 48 44 41 31 54 59 57 34 67 52 6E 4A 68 62 6D 4E HDA1TYW4gRnJhbmN00000880 70 0A 63 32 4E 76 4D 52 4D 77 45 51 59 44 56 51 p.c2NvMRMwEQYDVQ00000890 51 4B 44 41 70 43 61 58 52 55 62 33 4A 79 5A 57 QKDApCaXRUb3JyZW000008A0 35 30 4D 52 67 77 46 67 59 44 56 51 51 4C 44 41 50MRgwFgYDVQQLDA000008B0 39 43 61 58 52 55 62 33 4A 79 5A 57 35 30 49 46 9CaXRUb3JyZW50IF000008C0 4E 35 0A 62 6D 4D 78 47 44 41 57 42 67 4E 56 42 N5.bmMxGDAWBgNVB000008D0 41 4D 4D 44 30 4A 70 64 46 52 76 63 6E 4A 6C 62 AMMD0JpdFRvcnJlb000008E0 6E 51 67 55 33 6C 75 59 7A 43 42 6E 7A 41 4E 42 nQgU3luYzCBnzANB000008F0 67 6B 71 68 6B 69 47 39 77 30 42 41 51 45 46 41 gkqhkiG9w0BAQEFA00000900 41 4F 42 0A 6A 51 41 77 67 59 6B 43 67 59 45 41 AOB.jQAwgYkCgYEA00000910 78 45 6F 61 41 38 33 63 63 43 73 5A 2F 63 73 62 xEoaA83ccCsZ/csb00000920 4D 6A 78 6A 49 54 42 6D 4B 39 2F 39 42 65 38 33 MjxjITBmK9/9Be8300000930 6D 77 7A 59 73 6E 4F 77 66 4B 65 61 36 6A 37 76 mwzYsnOwfKea6j7v00000940 4D 2F 41 52 0A 38 30 4C 67 43 58 72 49 45 74 63 M/AR.80LgCXrIEtc00000950 46 48 43 68 2F 64 6C 58 64 78 2F 56 75 71 52 33 FHCh/dlXdx/VuqR300000960 59 59 49 2B 75 71 69 66 49 50 72 33 62 38 71 6B YYI+uqifIPr3b8qk00000970 67 44 54 75 79 71 56 32 57 7A 30 2F 2B 58 7A 35 gDTuyqV2Wz0/+Xz500000980 48 31 67 50 66 0A 76 69 47 55 69 6B 72 68 58 36 H1gPf.viGUikrhX600000990 66 66 53 41 6A 66 32 57 52 6C 73 4D 70 37 4C 6A ffSAjf2WRlsMp7Lj000009A0 77 6C 62 66 58 70 69 79 6A 33 72 49 6F 69 4A 76 wlbfXpiyj3rIoiJv000009B0 69 52 78 34 30 2B 44 41 5A 68 65 6A 63 43 41 77 iRx40+DAZhejcCAw000009C0 45 41 41 54 41 4E 0A 42 67 6B 71 68 6B 69 47 39 EAATAN.BgkqhkiG9000009D0 77 30 42 41 51 55 46 41 41 4F 42 67 51 42 73 50 w0BAQUFAAOBgQBsP000009E0 35 66 50 45 30 4A 6C 64 4C 44 73 61 38 6C 71 52 5fPE0JldLDsa8lqR000009F0 2B 69 73 65 33 4E 42 64 59 76 42 68 53 64 75 68 +ise3NBdYvBhSduh00000A00 6D 49 38 4A 65 51 79 0A 34 55 30 45 65 49 6C 45 mI8JeQy.4U0EeIlE00000A10 49 57 42 54 69 44 2B 78 57 6C 6B 52 42 38 37 32 IWBTiD+xWlkRB87200000A20 6A 65 30 51 77 33 65 6D 33 53 63 62 4E 71 65 69 je0Qw3em3ScbNqei00000A30 4E 44 63 74 4F 4A 31 70 67 57 77 36 36 66 75 45 NDctOJ1pgWw66fuE00000A40 31 6A 55 6F 59 46 79 6C 0A 6F 51 69 59 62 4E 6E 1jUoYFyl.oQiYbNn00000A50 58 45 73 47 4F 4A 4B 59 70 4D 75 5A 58 48 46 74 XEsGOJKYpMuZXHFt00000A60 51 68 30 61 53 5A 2F 32 50 43 47 51 45 59 42 79 Qh0aSZ/2PCGQEYBy00000A70 70 49 57 39 37 61 55 5A 6B 39 6B 34 4F 47 68 4E pIW97aUZk9k4OGhN00000A80 4C 5A 47 52 37 55 54 51 39 0A 5A 77 3D 3D 0A 2D LZGR7UTQ9.Zw==.-00000A90 2D 2D 2D 2D 45 4E 44 20 43 45 52 54 49 46 49 43 ----END CERTIFIC00000AA0 41 54 45 2D 2D 2D 2D 2D 0A 2D 2D 2D 2D 2D 42 45 ATE-----.-----BE00000AB0 47 49 4E 20 50 52 49 56 41 54 45 20 4B 45 59 2D GIN PRIVATE KEY-00000AC0 2D 2D 2D 2D 0A 4D 49 49 43 64 51 49 42 41 44 41 ----.MIICdQIBADA00000AD0 4E 42 67 6B 71 68 6B 69 47 39 77 30 42 41 51 45 NBgkqhkiG9w0BAQE00000AE0 46 41 41 53 43 41 6C 38 77 67 67 4A 62 41 67 45 FAASCAl8wggJbAgE00000AF0 41 41 6F 47 42 41 4D 52 4B 47 67 50 4E 33 48 41 AAoGBAMRKGgPN3HA00000B00 72 47 66 33 4C 0A 47 7A 49 38 59 79 45 77 5A 69 rGf3L.GzI8YyEwZi00000B10 76 66 2F 51 58 76 4E 35 73 4D 32 4C 4A 7A 73 48 vf/QXvN5sM2LJzsH00000B20 79 6E 6D 75 6F 2B 37 7A 50 77 45 66 4E 43 34 41 ynmuo+7zPwEfNC4A00000B30 6C 36 79 42 4C 58 42 52 77 6F 66 33 5A 56 33 63 l6yBLXBRwof3ZV3c00000B40 66 31 62 71 6B 64 0A 32 47 43 50 72 71 6F 6E 79 f1bqkd.2GCPrqony00000B50 44 36 39 32 2F 4B 70 49 41 30 37 73 71 6C 64 6C D692/KpIA07sqldl00000B60 73 39 50 2F 6C 38 2B 52 39 59 44 33 37 34 68 6C s9P/l8+R9YD374hl00000B70 49 70 4B 34 56 2B 6E 33 30 67 49 33 39 6C 6B 5A IpK4V+n30gI39lkZ00000B80 62 44 4B 65 79 34 38 0A 4A 57 33 31 36 59 73 6F bDKey48.JW316Yso00000B90 39 36 79 4B 49 69 62 34 6B 63 65 4E 50 67 77 47 96yKIib4kceNPgwG00000BA0 59 58 6F 33 41 67 4D 42 41 41 45 43 67 59 41 68 YXo3AgMBAAECgYAh00000BB0 6B 61 71 78 53 39 75 50 4D 30 2F 57 6E 34 32 66 kaqxS9uPM0/Wn42f00000BC0 49 63 53 79 51 46 79 34 0A 31 43 32 70 66 69 65 IcSyQFy4.1C2pfie00000BD0 38 56 49 34 61 74 72 35 51 45 7A 6E 6A 4A 62 41 8VI4atr5QEznjJbA00000BE0 79 36 62 4F 6F 4C 70 2B 78 2F 31 57 49 49 30 32 y6bOoLp+x/1WII0200000BF0 30 61 78 69 68 58 44 33 35 6E 48 65 34 5A 47 70 0axihXD35nHe4ZGp00000C00 45 32 55 32 39 62 76 67 44 0A 59 4B 7A 54 33 2F E2U29bvgD.YKzT3/00000C10 5A 6E 61 66 6A 51 55 47 51 78 4F 35 33 73 41 32 ZnafjQUGQxO53sA200000C20 31 58 56 70 75 75 61 6A 4A 4C 34 35 7A 2B 52 65 1XVpuuajJL45z+Re00000C30 34 37 66 57 58 32 65 33 34 7A 2F 52 79 4A 48 73 47fWX2e34z/RyJHs00000C40 55 58 2B 32 37 6B 35 54 33 71 0A 61 6F 37 4B 61 UX+27k5T3q.ao7Ka00000C50 37 33 4A 47 64 4E 2F 59 66 2B 45 41 51 4A 42 41 73JGdN/Yf+EAQJBA00000C60 50 4A 62 72 7A 48 7A 64 31 5A 61 2B 54 67 31 75 PJbrzHzd1Za+Tg1u00000C70 2F 45 50 70 69 6B 74 7A 55 30 67 52 69 50 4E 45 /EPpiktzU0gRiPNE00000C80 39 6B 69 38 2B 6C 79 78 74 37 36 0A 62 63 54 37 9ki8+lyxt76.bcT700000C90 39 4A 41 69 49 73 4B 46 2B 70 69 34 51 2F 69 49 9JAiIsKF+pi4Q/iI00000CA0 42 65 36 77 6C 43 42 32 2B 2B 30 75 36 71 4E 2B Be6wlCB2++0u6qN+00000CB0 56 42 42 63 75 73 45 43 51 51 44 50 56 70 52 32 VBBcusECQQDPVpR200000CC0 34 38 39 45 70 64 69 65 62 31 70 37 0A 39 50 45 489Epdieb1p7.9PE00000CD0 39 32 34 72 49 37 48 70 6E 38 39 6F 30 73 57 63 924rI7Hpn89o0sWc00000CE0 61 4A 67 4C 68 30 78 68 39 39 73 38 4E 4B 75 59 aJgLh0xh99s8NKuY00000CF0 48 6C 4A 52 6F 63 6B 38 53 50 4D 6A 73 76 4D 64 HlJRock8SPMjsvMd00000D00 30 50 54 78 59 66 66 71 47 44 73 2F 46 0A 7A 63 0PTxYffqGDs/F.zc00000D10 72 33 41 6B 41 62 7A 55 53 31 75 44 59 79 59 39 r3AkAbzUS1uDYyY900000D20 45 2F 44 33 72 31 31 6C 4F 37 57 5A 4F 35 69 30 E/D3r11lO7WZO5i000000D30 42 41 6A 78 2F 39 77 72 4B 30 54 77 52 64 51 2B BAjx/9wrK0TwRdQ+00000D40 45 66 76 62 39 36 59 56 41 58 66 49 4D 59 0A 7A Efvb96YVAXfIMY.z00000D50 64 71 4F 51 68 78 63 47 30 6D 43 78 2B 4E 79 65 dqOQhxcG0mCx+Nye00000D60 2F 56 53 75 41 55 77 73 31 4B 42 41 6B 41 73 56 /VSuAUws1KBAkAsV00000D70 35 66 6F 31 55 2B 2B 6E 72 6C 31 4B 4E 74 78 4A 5fo1U++nrl1KNtxJ00000D80 7A 46 77 79 55 4D 6C 4E 57 33 34 54 57 36 64 0A zFwyUMlNW34TW6d.00000D90 56 6C 4E 32 68 43 71 5A 6F 55 76 62 70 4B 30 6A VlN2hCqZoUvbpK0j00000DA0 59 38 6C 4F 56 62 68 6E 6E 67 72 4C 47 37 54 63 Y8lOVbhnngrLG7Tc00000DB0 37 49 4B 37 6D 56 30 4F 6A 2B 4C 45 53 4F 61 6D 7IK7mV0Oj+LESOam00000DC0 70 78 79 42 41 6B 42 65 4B 35 45 51 6F 34 6A 57 pxyBAkBeK5EQo4jW00000DD0 0A 4B 77 69 48 42 61 50 66 73 76 73 50 4B 67 75 .KwiHBaPfsvsPKgu00000DE0 2F 50 70 61 77 45 69 6B 32 72 6C 5A 46 6A 6D 6A /PpawEik2rlZFjmj00000DF0 50 36 59 44 78 62 4E 4C 66 44 79 48 50 41 45 35 P6YDxbNLfDyHPAE500000E00 4C 55 32 6C 35 38 6C 49 43 6E 6E 52 59 62 75 52 LU2l58lICnnRYbuR00000E10 47 0A 6D 72 39 7A 6B 6D 72 69 55 44 78 7A 0A 2D G.mr9zkmriUDxz.-00000E20 2D 2D 2D 2D 45 4E 44 20 50 52 49 56 41 54 45 20 ----END PRIVATE 00000E30 4B 45 59 2D 2D 2D 2D 2D 0A 32 32 3A 73 65 74 74 KEY-----.22:sett00000E40 69 6E 67 73 5F 73 61 76 65 64 5F 73 79 73 74 69 ings_saved_systi00000E50 6D 65 69 31 34 34 30 32 39 31 36 30 35 65 31 33 mei1440291605e1300000E60 3A 73 68 6F 77 5F 63 6F 70 79 5F 6B 65 79 69 31 :show_copy_keyi100000E70 65 37 3A 73 6D 61 78 61 67 65 69 30 65 37 3A 73 e7:smaxagei0e7:s00000E80 6D 69 6E 61 67 65 69 30 65 33 3A 73 73 74 69 30 minagei0e3:ssti000000E90 65 32 3A 74 64 69 36 38 36 35 36 34 34 37 33 31 e2:tdi686564473100000EA0 30 65 33 3A 74 74 63 69 31 35 38 34 36 65 33 3A 0e3:ttci15846e3:00000EB0 74 74 64 69 37 37 37 30 35 65 32 3A 74 75 69 32 ttdi77705e2:tui200000EC0 33 31 30 31 31 31 35 31 34 38 35 65 31 30 3A 75 31011151485e10:u00000ED0 69 5F 76 65 72 73 69 6F 6E 69 30 65 31 36 3A 75 i_versioni0e16:u00000EE0 70 6E 70 2E 65 78 74 65 72 6E 61 6C 5F 69 70 31 pnp.external_ip100000EF0 34 3A 31 37 33 2E 32 32 2E 32 31 34 2E 31 34 36 4:173.22.214.14600000F00 32 32 3A 75 70 6E 70 2E 65 78 74 65 72 6E 61 6C 22:upnp.external00000F10 5F 74 63 70 5F 70 6F 72 74 69 35 39 30 36 34 65 _tcp_porti59064e00000F20 32 32 3A 75 70 6E 70 2E 65 78 74 65 72 6E 61 6C 22:upnp.external00000F30 5F 75 64 70 5F 70 6F 72 74 69 35 39 30 36 34 65 _udp_porti59064e00000F40 31 36 3A 75 70 6E 70 5F 63 61 63 68 65 64 5F 68 16:upnp_cached_h00000F50 6F 73 74 35 30 3A 68 74 74 70 3A 2F 2F 31 39 32 ost50:http://19200000F60 2E 31 36 38 2E 31 30 2E 31 3A 31 37 38 30 2F 49 .168.10.1:1780/I00000F70 6E 74 65 72 6E 65 74 47 61 74 65 77 61 79 44 65 nternetGatewayDe00000F80 76 69 63 65 2E 78 6D 6C 31 35 3A 75 74 70 5F 72 vice.xml15:utp_r00000F90 61 77 5F 72 65 63 76 5F 62 67 69 31 39 38 38 30 aw_recv_bgi1988000000FA0 65 31 35 3A 75 74 70 5F 72 61 77 5F 72 65 63 76 e15:utp_raw_recv00000FB0 5F 65 6D 69 36 36 30 30 30 36 34 38 65 31 35 3A _emi66000648e15:00000FC0 75 74 70 5F 72 61 77 5F 72 65 63 76 5F 68 67 69 utp_raw_recv_hgi00000FD0 35 31 31 31 35 65 31 35 3A 75 74 70 5F 72 61 77 51115e15:utp_raw00000FE0 5F 72 65 63 76 5F 6D 64 69 31 31 34 32 33 65 31 _recv_mdi11423e100000FF0 35 3A 75 74 70 5F 72 61 77 5F 72 65 63 76 5F 73 5:utp_raw_recv_s00001000 6D 69 33 37 38 35 39 39 30 65 31 35 3A 75 74 70 mi3785990e15:utp00001010 5F 72 61 77 5F 73 65 6E 64 5F 62 67 69 31 37 30 _raw_send_bgi17000001020 34 65 31 35 3A 75 74 70 5F 72 61 77 5F 73 65 6E 4e15:utp_raw_sen00001030 64 5F 65 6D 69 32 34 38 39 32 38 30 65 31 35 3A d_emi2489280e15:00001040 75 74 70 5F 72 61 77 5F 73 65 6E 64 5F 68 67 69 utp_raw_send_hgi00001050 38 34 32 35 37 36 36 35 65 31 35 3A 75 74 70 5F 84257665e15:utp_00001060 72 61 77 5F 73 65 6E 64 5F 6D 64 69 31 30 32 39 raw_send_mdi102900001070 30 33 36 65 31 35 3A 75 74 70 5F 72 61 77 5F 73 036e15:utp_raw_s00001080 65 6E 64 5F 73 6D 69 32 37 36 30 38 31 65 31 3A end_smi276081e1:00001090 76 69 33 33 35 35 34 35 32 35 65 32 32 3A 77 65 vi33554525e22:we000010A0 62 75 69 2E 64 6F 77 6E 6C 6F 61 64 5F 66 6F 6C bui.download_fol000010B0 64 65 72 73 6C 65 31 34 3A 77 65 62 75 69 2E 68 dersle14:webui.h000010C0 61 73 68 77 6F 72 64 32 30 3A A2 C1 61 17 34 62 ashword20:¢Áa.4b000010D0 37 3B D5 32 63 4B FD 4B 4D 9C 14 2F 4E B5 31 37 7;Õ2cKýKMœ./Nµ17000010E0 3A 77 65 62 75 69 2E 70 61 69 72 5F 68 61 73 68 :webui.pair_hash000010F0 65 73 64 37 3A 65 6E 74 72 69 65 73 6C 65 65 31 esd7:entrieslee100001100 30 3A 77 65 62 75 69 2E 73 61 6C 74 34 34 3A 38 0:webui.salt44:800001110 6E 50 6D 34 76 30 53 73 4A 37 2F 6B 56 6C 78 51 nPm4v0SsJ7/kVlxQ00001120 76 6C 77 52 51 30 78 73 33 45 41 37 32 73 6B 33 vlwRQ0xs3EA72sk300001130 4B 69 2B 65 76 53 4A 4A 66 41 3D 65  Ki+evSJJfA=e
Generated by HxD

You can see where the certificate and key starts and ends. I was going to just replace them with my certificate and key but the lengths don't match. There is also a variable at the beginning of the certificate named "selfcert1816". I don't know if that is an identification of the type, length, encryption, etc... or what. I would just give it a try if I had another Disk Station around to test it on.

 

I did find something else while looking around in the @appstore. In "@appstore/bittorrentsync/app" there is a file named config. It has the port and protocol settings. Here is whats inside it.

{    ".url": {        "com.bittorrent.sync": {            "title": "BitTorrent Sync",            "desc": "BitTorrent Sync Web UI",            "icon": "images/bittorrentsync-{0}.png",            "type": "url",            "protocol": "http",            "port": "8890",            "url": "/",            "allUsers": false        }    }}
I would like to use the same SSL that is on my Synology for Btsync. It would save me from having to use my public or LAN IP whenever I need to add or remove shares. Edited by GreatMarko
Hidden lengthy Hex dump by default
Link to comment
Share on other sites

  • 4 months later...

Just got this work. If anybody wants to do this, follow the steps.

 

NOT RESPONSIBLE FOR ANY DAMAGES OF ANY KIND

 

This is for a Synology NAS and that you have already installed a SSL on it. You will need SSH enabled and putty.exe to run some commands. You also need notepad++ to edit a file.

 

1. Stop BTSYNC if it is running in the package manager.

 

2. Make a copy of your Synology's certificate and key. In putty, login with "root" as the user and the password you use for the admin account. Now run the following commands. The files should automatically have the permissions and owner changed when BTSYNC starts up.

cd /usr/syno/etc/sslcp ssl.crt/server.crt /volume1/@appstore/bittorrentsync/var/server.crtcp ssl.key/server.key /volume1/@appstore/bittorrentsync/var/server.key

3. Now to change the config to run with HTTPS and have BTSNYC load the SSL files. Still using putty, run the following commands. Change the path if needed, like to the public folder.

cd /volume1/@appstore/bittorrentsync/varcp sync.conf /volume1/Downloads/sync.conf

Now open the file with notepad++, I would make a backup first just to be safe. This is what the file should look like. There may be some slight differences.

{   "storage_path" : "/usr/local/bittorrentsync/var",  "pid_file" : "/usr/local/bittorrentsync/var/syncapp.pid",  "display_new_version" : false,  "vendor" : "Synology",  "webui" :  {    "listen" : "0.0.0.0:8890",    "allow_empty_password" : false,    "directory_root" : "/",    "dir_whitelist" : ["/volume1","/volume2","/volume3","/volume4","/volume5","/volume6","/volume7","/volume8","/volume9","/volume10","/volume11","/volume12","/volume13","/volume14","/volume15","/volume16","/volume17","/volume18","/volume19","/volume20"],    "context":"{\"folder_blacklist\": [\"\/@\", \"\/lost\\\\+found\"]}",    "directory_root_policy":"belowroot"  }}

Now add this right under ""allow_empty_password" : false,". NOTE THE "COMMAS" AT THE END OF EVERY LINE.

"force_https" : true,"ssl_certificate" : "/volume1/@appstore/bittorrentsync/var/server.crt","ssl_private_key" : "/volume1/@appstore/bittorrentsync/var/server.key",

It should look like this when you are done.

{   "storage_path" : "/usr/local/bittorrentsync/var",  "pid_file" : "/usr/local/bittorrentsync/var/syncapp.pid",  "display_new_version" : false,  "vendor" : "Synology",  "webui" :  {    "listen" : "0.0.0.0:8890",    "allow_empty_password" : false,    "force_https" : true,    "ssl_certificate" : "/volume1/@appstore/bittorrentsync/var/server.crt",    "ssl_private_key" : "/volume1/@appstore/bittorrentsync/var/server.key",    "directory_root" : "/",    "dir_whitelist" : ["/volume1","/volume2","/volume3","/volume4","/volume5","/volume6","/volume7","/volume8","/volume9","/volume10","/volume11","/volume12","/volume13","/volume14","/volume15","/volume16","/volume17","/volume18","/volume19","/volume20"],    "context":"{\"folder_blacklist\": [\"\/@\", \"\/lost\\\\+found\"]}",    "directory_root_policy":"belowroot"  }}

Now save the file and copy it back to its original location. Still using putty, run the following commands. If you changed the path from the previous command you need to change it here too.

cd /volume1/Downloadscp -f sync.conf /volume1/@appstore/bittorrentsync/var/sync.conf

Now start BYSYNC from the package manager. If you get an error, it most likely due to an error in the config file you edited. Double check it and copy it again. If BTSYNC runs, you should now have HTTPS forced and using your SSL certificate.

 

I will try and answer any questions but I don't usually check here. I'm mostly on Synology forums.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.