Cannot import Skype repo GPG key on EL9

Orion Poplawski 1 Reputation point
2023-01-11T14:50:53.7066667+00:00

The RPM GPG key used to sign packages in the Skype Linux repository needs to be updated. It cannot be imported on an EL9 system:

# curl -o /etc/pki/rpm-gpg/SKYPE-GPG-KEY https://repo.skype.com/data/SKYPE-GPG-KEY 
 % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current 
                                Dload  Upload   Total   Spent    Left  Speed 
100  1787  100  1787    0     0   5366      0 --:--:-- --:--:-- --:--:--  5350

# rpm --import /etc/pki/rpm-gpg/SKYPE-GPG-KEY 
warning: Signature not supported. Hash algorithm SHA1 not available. 
error: /etc/pki/rpm-gpg/SKYPE-GPG-KEY: key 1 import failed.


Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,255 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Linux Global 0 Reputation points
    2023-06-23T01:56:32.69+00:00

    RHEL9 deprecated SHA-1. Here is the article: https://www.redhat.com/en/blog/rhel-security-sha-1-package-signatures-distrusted-rhel-9

    Here is a work-around from the article:

    I still want to install SHA-1 signed packages! This is discouraged. Even a signature from a years old RPM could be hacked recently by an attacker. If you really know what you are doing, there’s a possibility to use dnf --nogpgcheck option. Alternatively you can also switch to the legacy crypto policy:

    > update-crypto-policies --set LEGACY
    > ```
    
    > Or explicitly allow the SHA-1:
    > 
    ```bash
    > update-crypto-policies --set DEFAULT:SHA1
    > ```
    
    > **But please don’t forget to switch back, e.g.:**
    > 
    ```bash
    > update-crypto-policies --set DEFAULT
    > ```
    
    
    0 comments No comments