Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at
Bug 1173886 - With policy set to FUTURE gnutls-cli does not work
Summary: With policy set to FUTURE gnutls-cli does not work
Alias: None
Product: Fedora
Classification: Fedora
Component: crypto-policies
Version: 21
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Nikos Mavrogiannopoulos
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2014-12-13 19:13 UTC by Štefan Gurský
Modified: 2015-01-13 00:04 UTC (History)
1 user (show)

Fixed In Version: crypto-policies-20140905-2.git4649b7d.fc21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2015-01-13 00:04:06 UTC
Type: Bug

Attachments (Terms of Use)

Description Štefan Gurský 2014-12-13 19:13:51 UTC
Description of problem:

I have crypto policy set to future and when I try to use gnutls-cli, it fails with:

Syntax error at: E_VERY_WEAK

When crypto-policy is DEFAULT, I do not get this error.

Version-Release number of selected component (if applicable):
Name        : crypto-policies
Version     : 20140905
Release     : 1.git4649b7d.fc21
Architecture: noarch

Steps to Reproduce:
1. set policy to FUTURE (and run update-crypto-policies)
2. try to use gnutls-cli

Actual results:

$ gnutls-cli  -VVV -d 999
|<2>| Initializing PKCS #11 modules
|<2>| p11: Initializing module: p11-kit-trust
|<2>| p11: Initializing module: gnome-keyring
|<2>| p11: Initializing module: opensc
|<3>| ASSERT: pkcs11.c:503
|<3>| ASSERT: pkcs11.c:2412
|<3>| ASSERT: pkcs11.c:2746
Processed 177 CA certificate(s).
Resolving ''...
Connecting to ''...
|<5>| REC[0x2098c70]: Allocating epoch #0
|<3>| ASSERT: gnutls_priority.c:1388
Syntax error at: E_VERY_WEAK

Additional info:

$ cat /etc/crypto-policies/back-ends/gnutls.config 

Comment 1 Nikos Mavrogiannopoulos 2014-12-14 16:49:19 UTC
Thanks. I see a typo in the string, although I see a different error code. Does replacing back-ends/gnutls.config with the following fixes the issue for you?


Comment 2 Štefan Gurský 2014-12-14 21:29:28 UTC
$ cat /etc/crypto-policies/back-ends/gnutls.config 

With this “gnutls-cli” works.

$ cat /etc/crypto-policies/back-ends/gnutls.config 

With this “gnutls-cli” returns:
- Status: The certificate is NOT trusted. The certificate chain uses insecure algorithm.

but some other sites work. Which one is correct?

Comment 3 Nikos Mavrogiannopoulos 2014-12-16 08:56:52 UTC
Correct, that seems to fix the issue then. Note that with future settings you shouldn't expect many sites to work. Among others, it requires better than SHA1 algorithms, and most sites on the internet don't use anything else than SHA1. With the openssl settings it is not possible to express this requirement (hopefully that will change in F22), and that's why it may work.

Comment 4 Fedora Update System 2014-12-16 13:56:11 UTC
crypto-policies-20140905-2.git4649b7d.fc21 has been submitted as an update for Fedora 21.

Comment 5 Fedora Update System 2014-12-18 06:04:36 UTC
Package crypto-policies-20140905-2.git4649b7d.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing crypto-policies-20140905-2.git4649b7d.fc21'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2015-01-13 00:04:06 UTC
crypto-policies-20140905-2.git4649b7d.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.