Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning : Bad SSL config, can't generate certificate. #15

Open
BCITMike opened this issue Apr 1, 2019 · 2 comments
Open

Warning : Bad SSL config, can't generate certificate. #15

BCITMike opened this issue Apr 1, 2019 · 2 comments
Assignees

Comments

@BCITMike
Copy link

BCITMike commented Apr 1, 2019

New install of openmediavault, but unable to install btsync successfully:

# apt-get install btsync
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  bind-shim
The following NEW packages will be installed:
  btsync
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/100 kB of archives.
After this operation, 211 kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously unselected package btsync.
(Reading database ... 49257 files and directories currently installed.)
Preparing to unpack .../btsync_2.5.0-1.0_all.deb ...
Unpacking btsync (2.5.0-1.0) ...
Setting up btsync (2.5.0-1.0) ...
Warning : Bad SSL config, can't generate certificate.
chmod: cannot operate on dangling symlink '/etc/btsync/debconf-default.crt'
chmod: cannot operate on dangling symlink '/etc/btsync/debconf-default.key'

Any idea how to get around this?

@Silvenga
Copy link
Owner

Silvenga commented Apr 5, 2019

Looks like the default certs aren't being generated for some reason. Basically the certs should be generated here: /usr/share/btsync/debconf-default.crt.

Can you run (copy and past all the lines into a shell):

where openssl
openssl req -newkey rsa:2048  -x509 -days 3652 -nodes \
		-rand /dev/urandom -out /tmp/cert -keyout /tmp/cert.key <<+
.
.
.
BitTorrent Sync
Administration Interface
localhost
root@localhost
+
echo $?

And post the output?

@Silvenga Silvenga self-assigned this Apr 5, 2019
@luopa
Copy link

luopa commented May 3, 2019

i'm experiencing the same issue - hence see below the result after running the command from above.
running on Raspbian 9 (stretch)

root@raspberrypi:/etc/apt/sources.list.d# where openssl

bash: where: Kommando nicht gefunden.
root@raspberrypi:/etc/apt/sources.list.d# openssl req -newkey rsa:2048  -x509 -days 3652 -nodes \
>
raspi.list                silvenga-btsync-deb.list
> -rand /dev/urandom -out /tmp/cert -keyout /tmp/cert.key <<+
> .
> .
> .
> BitTorrent Sync
> Administration Interface
> localhost
> root@localhost
> +
Generating a RSA private key
.....+++++
............+++++
writing new private key to '/tmp/cert.key'
-----
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]:State or Province Name (full name) [Some-State]:Locality Name (eg, city) []:Organization Name (eg, company) [Internet Widgits Pty Ltd]:Organizational Unit Name (eg, section) []:Common Name (e.g. server FQDN or YOUR name) []:Email Address []:root@raspberrypi:/etc/apt/sources.list.d# echo $?'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants