# Prefered Method for Importing PGP Keys

**URL:** <https://forums.suse.com/t/prefered-method-for-importing-pgp-keys/34573>\
**Category:** SLED Configure-Administer\
**Created:** [November 24, 2019, 9:28pm UTC](https://forums.suse.com/t/prefered-method-for-importing-pgp-keys/34573 "2019-11-24T21:28:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![wylbur](https://avatars.discourse-cdn.com/v4/letter/w/9f8e36/32.png) [@wylbur](https://forums.suse.com/u/wylbur)\
**Post date:** [November 24, 2019, 9:28pm UTC](https://forums.suse.com/t/prefered-method-for-importing-pgp-keys/34573/1 "2019-11-24T21:28:06Z")

</div>

I am attempting to install an Oracle Virtualbox “package” because the guest tools and the Virtualbox package Yast has available do not match (SLED15)

In attempting to do this, I get a notification that the install has a security problem (the keys are not recognized/don’t match…).

Ok, so I checked with Oracle and get a PGP Public Key. I don’t seem to have a way to import this, and Yast is not finding anything that means anything to me (I do most of my work on z/Architecture, z/OS systems and so I’m much more familiar with the NON-POSIX world), so I’m just not understanding how to import this key.

What is it that I need to do so that I can get this key imported so “Yast” can be happy with this package/install (and I don’t over ride things unless I know I have a valid reason to do it)?

Regards,  
Wylbur

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [November 25, 2019, 5:14am UTC](https://forums.suse.com/t/prefered-method-for-importing-pgp-keys/34573/2 "2019-11-25T05:14:46Z")

</div>

Hi  
How did you add the repository, do you have a link?

I normally use the following for third party repositories so it uses and imports the key;

```auto
zypper ar -f -g -n "Name of Repo" <url to folder with *.repo present> <repo-alias-to-use>
```

---

<div class="post-metadata">

**Author:** ![Andreas1](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@Andreas1](https://forums.suse.com/u/Andreas1)\
**Post date:** [November 27, 2019, 9:06pm UTC](https://forums.suse.com/t/prefered-method-for-importing-pgp-keys/34573/3 "2019-11-27T21:06:52Z")

</div>

First method)

SLE Administration Guide =\> chaptre “6.2.1 Verifying Package Authenticity”:  
[https://documentation.suse.com](https://documentation.suse.com)

# rpm --import /usr/share/doc/packages/suse-build-key/suse\_ptf\_key.asc

=\> imports SUSE PTF key

Second method)  
installation or deinstallation of any gpg key in YAST2 “Repositories”:

# yast2 repositories

=\> button “gpg key”

---

<div class="post-metadata">

**Author:** ![wylbur](https://avatars.discourse-cdn.com/v4/letter/w/9f8e36/32.png) [@wylbur](https://forums.suse.com/u/wylbur)\
**Post date:** [December 25, 2019, 2:38am UTC](https://forums.suse.com/t/prefered-method-for-importing-pgp-keys/34573/4 "2019-12-25T02:38:23Z")

</div>

[QUOTE=malcolmlewis;58919]Hi  
How did you add the repository, do you have a link?

I normally use the following for third party repositories so it uses and imports the key;

`
zypper ar -f -g -n "Name of Repo" <url to folder with *.repo present> <repo-alias-to-use>
`[/QUOTE]

I tried to do it the way Oracle said and it fails.

The CEO of AT&T once said, to a group of us, Why is it so \*\*\*\* hard to work here?

I love Linux, and in particular SUSE. I’ve used many other distros. I’m not working on the bleeding edge – When I did that, I was writing the code to make a machine match the architecture as published by IBM for the S/370-XA machines. I know what the bleeding edge is. This ain’t it.

Yet I keep falling over things that I just don’t have time to deal with. This is why I stopped using Open SUSE and went to SLED. At least on my installs now, I don’t have to battle to get RAID working, ethernet adapters to work, etc.

That said, why is it so \*\*\*\* hard to get a repository into the system? Did Oracle just decide to give up? I am tired of jumping back and forth between VMware and Vbox. Zen and the others just don’t seem to be friendly. I’m not wanting to install a Hypervisor to then install SLED and then W10. I want W10 as a Guest under SLED.

Meanwhile I am going to migrate off to 15 SP1. And we will see how that goes.

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [December 26, 2019, 11:45pm UTC](https://forums.suse.com/t/prefered-method-for-importing-pgp-keys/34573/5 "2019-12-26T23:45:09Z")

</div>

[QUOTE=wylbur;59118]I tried to do it the way Oracle said and it fails.

The CEO of AT&T once said, to a group of us, Why is it so \*\*\*\* hard to work here?

I love Linux, and in particular SUSE. I’ve used many other distros. I’m not working on the bleeding edge – When I did that, I was writing the code to make a machine match the architecture as published by IBM for the S/370-XA machines. I know what the bleeding edge is. This ain’t it.

Yet I keep falling over things that I just don’t have time to deal with. This is why I stopped using Open SUSE and went to SLED. At least on my installs now, I don’t have to battle to get RAID working, ethernet adapters to work, etc.

That said, why is it so \*\*\*\* hard to get a repository into the system? Did Oracle just decide to give up? I am tired of jumping back and forth between VMware and Vbox. Zen and the others just don’t seem to be friendly. I’m not wanting to install a Hypervisor to then install SLED and then W10. I want W10 as a Guest under SLED.

Meanwhile I am going to migrate off to 15 SP1. And we will see how that goes.[/QUOTE]  
Hi  
Then it’s likely a repository issue at the third party site… the above just works for a properly setup repository, or maybe it’s a yum repository?

KVM/qemu rocks along for me, I can use gpu passthrough for additional gpu cards in the desktop, currently going to add a SATA controller for disk access rather than a disk image. No building of kernel modules, it just works…

Maybe give GNOME Boxes a try out?
