On a fresh Ubuntu 18.04 docker image, I do and get this:
# debsecan --suite=sid --only-fixed --disable-https-check
error: while downloading https://security-tracker.debian.org/tracker/debsecan/release/1/sid:
error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:727)
Google hasn't been any help. Any suggested fixes haven't worked for me. --disable-https-check makes no difference. Ideas? Occasionally, the remote end doesn't respond at all.
Related
I want to install Flatpak in Ubuntu but when I run this line
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
I encounter this error message, how can I fix this error?
error: Can't load uri https://flathub.org/repo/flathub.flatpakrepo: Peer failed to perform TLS handshake: The TLS connection was non-properly terminated.
I'm developing with python 3.9.6.
I encounter this error...
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)`
Someone help me ?
Thanks
Your question needs a bit more context but try this:
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
I'm trying to build a Docker image, based on ubuntu:20.04, with R and bookdown with PDF support. But I'm getting ERROR: cannot verify yihui.org's certificate [...] with tinytex::install_tinytex():
> tinytex::install_tinytex()
trying URL 'https://yihui.org/tinytex/TinyTeX-1.tar.gz'
trying URL 'https://yihui.org/tinytex/TinyTeX-1.tar.gz'
--2020-11-23 09:19:05-- https://yihui.org/tinytex/TinyTeX-1.tar.gz
Resolving yihui.org (yihui.org)... 167.99.129.42, 134.209.226.211
Connecting to yihui.org (yihui.org)|167.99.129.42|:443... connected.
ERROR: cannot verify yihui.org's certificate, issued by 'CN=SSL-SG1-GROBU,OU=Operations,O=Cloud Services,C=US':
Unable to locally verify the issuer's authority.
To connect to yihui.org insecurely, use `--no-check-certificate'.
Error in download.file(url, output, ..., method = method) :
'wget' call had nonzero exit status
Calls: <Anonymous> ... download_file -> <Anonymous> -> download -> download.file
In addition: Warning messages:
1: In download.file(url, output, ..., method = method) :
URL 'https://yihui.org/tinytex/TinyTeX-1.tar.gz': status was 'SSL peer certificate or SSH remote key was not OK'
2: In download.file(url, output, ..., method = method) :
URL 'https://yihui.org/tinytex/TinyTeX-1.tar.gz': status was 'SSL peer certificate or SSH remote key was not OK'
You may have to restart your system after installing TinyTeX to make sure ~/bin appears in your PATH variable (https://github.com/yihui/tinytex/issues/16).
Execution halted
I need to find a way to verify and trust the certificate chain from yihui.org, as I'm not allowed to bypass the verification with --no-check-certificate.
Thanks in advance for any hint!
Mihai
The default docker image has no certificates installed, therefore there are also no root certificates. That is what is indicated by the error message Unable to locally verify the issuer's authority. You can obtain the root certificates from the package ca-certificates (install it via apt-get).
When I ping blockchain business network using composer network ping command getting following error:
Command :
ubuntu#pc:~/Yogendra/BlockChain/order-supply-chain-27-Feb-2018/order-supply-chain$ sudo composer network ping -c yogi#order-supply-chain
Error :
E0227 17:19:27.692776546 15301 ssl_transport_security.c:921]
Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL
routines:ssl3_get_server_certificate:certificate verify failed. E0227
17:19:27.708774523 15301 ssl_transport_security.c:921] Handshake
failed with fatal error SSL_ERROR_SSL: error:14090086:SSL
routines:ssl3_get_server_certificate:certificate verify failed. Error:
Error trying invoke business network. Error: Peer has rejected
transaction
'975aa720ec13a9ca2b58022e44d63cc69a815e802fd5495c904b5d44e9b2d251'
with code ENDORSEMENT_POLICY_FAILURE Command failed
The answer and comments in this post should help you if you are using Composer v0.16.x
This tutorial should help with the format of the connection.json file.
If you are using v0.17.x, you will need this version of the tutorial.
UPDATE:
Composer v0.19 is now the latest version with many enhancements and some breaking changes. The tutorial has been updated accordingly and the revised tutorial is here.
I am fairly new to Linux (and brand new to chef) and I have ran into an issue when setting up my chef server. I am trying to create an admin user with the command
sudo chef-server-ctl user-create admin Admin Ladmin admin#example.com
examplepass -f admin.pem
but after I keep getting this error:
ERROR: Connection refused connecting...
ERROR: Connection refused connecting to https://127.0.0.1/users/, retry 5/5
ERROR: Network Error: Connection refused - Connection refused
connecting to https://..., giving up
Check your knife configuration and network settings
I also noticed that when I ran chef-server-ctl I got this output:
[2016-12-21T13:24:59-05:00] ERROR: Running exception handlers Running
handlers complete
[2016-12-21T13:24:59-05:00] ERROR: Exception
handlers complete Chef Client failed. 0 resources updated in 01 seconds
[2016-12-21T13:24:59-05:00] FATAL: Stacktrace dumped to
/var/opt/opscode/local-mode-cache/chef-stacktrace.out
[2016-12-21T13:24:59-05:00] FATAL: Please provide the contents of the
stacktrace.out file if you file a bug report
[2016-12-21T13:24:59-05:00] FATAL:
Chef::Exceptions::CannotDetermineNodeName: Unable to determine node
name: configure node_name or configure the system's hostname and fqdn
I read that this error is due to a prerequisite mistake but I'm uncertain as to what it means or how to fix it. So any input would be greatly appreciated.
Your server does not have a valid FQDN (aka full host name). You'll have to fix this before installing Chef server.