import the PGP public key

Moderator: crythias

Locked
marouitaa1988
Znuny newbie
Posts: 31
Joined: 28 Feb 2011, 13:11
Znuny Version: 3.0.5

import the PGP public key

Post by marouitaa1988 »

I want to import my PGP public key for a customer but I do not know how. In fact I am often UBUNTU

Help plz
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: import the PGP public key

Post by crythias »

Edit Config Settings in Framework -> Crypt::PGP
PGP -> Yes
Update

Customer -> choose customer
PGP [Choose File] at the bottom.

Import is already handled via the PGP system:

Code: Select all

sub KeyAdd {
    my ( $Self, %Param ) = @_;

    # check needed stuff
    if ( !$Param{Key} ) {
        $Self->{LogObject}->Log(
            Priority => 'error',
            Message  => 'Need Key!',
        );
        return;
    }
    my ( $FH, $Filename ) = $Self->{FileTempObject}->TempFile();
    print $FH $Param{Key};
    close $FH;
    my $GPGOptions = "--import $Filename"; #<-- right here.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
marouitaa1988
Znuny newbie
Posts: 31
Joined: 28 Feb 2011, 13:11
Znuny Version: 3.0.5

Re: import the PGP public key

Post by marouitaa1988 »

and if i want first to :
export the PGP public key OTRS
how i can do it?
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: import the PGP public key

Post by crythias »

OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
marouitaa1988
Znuny newbie
Posts: 31
Joined: 28 Feb 2011, 13:11
Znuny Version: 3.0.5

Re: import the PGP public key

Post by marouitaa1988 »

Thank you Crythias
i export my PGP key to a server of public keys and i import it. Now i want to add my public key PGP in the "manage PGP keys for email encryption" and i've got this error:
Can't add key: gpg: WARNING: unsafe ownership on homedir `/opt/itsm/.gnupg/' gpg: failed to create temporary file `/opt/itsm/.gnupg//.#lk0xd653c0.new.2405': Permission denied gpg: keyblock resource `/opt/itsm/.gnupg//secring.gpg': general error gpg: failed to create temporary file `/opt/itsm/.gnupg//.#lk0xd653c0.new.2405': Permission denied gpg: keyblock resource `/opt/itsm/.gnupg//pubring.gpg': general error gpg: no writable keyring found: eof gpg: error reading `/opt/itsm/var/tmp/IpA2W1vOD8.tmp': general error gpg: import from `/opt/itsm/var/tmp/IpA2W1vOD8.tmp' failed: general error gpg: Total number processed: 0!

What should i do? :(
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: import the PGP public key

Post by crythias »

OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Locked