How to use S/MIME and PGP Keys

Moderator: crythias

Locked
zin
Znuny newbie
Posts: 15
Joined: 16 Sep 2016, 06:50
Znuny Version: 5.0.x

How to use S/MIME and PGP Keys

Post by zin »

Dear all,

I am new user of OTRS 5s and i don't know how to use S/MIME and PGP keys for email encryption at all.
Moreover i'm also have a very little knowledge of system admin.
Please help me with this.
Thank in advanced.
yours truly
wurzel
Znuny guru
Posts: 3273
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: How to use S/MIME and PGP Keys

Post by wurzel »

Hi,

http://otrs.github.io/doc/manual/admin/ ... area-smime

if you have no (or little) experience I would strongly recommend to get professional support. Encryption is not easy and needs to be setup properly.

S/MIME and PGP is 99% configuration with openSSL and backend linux configuration. OTRS "uses" this config, only.


Regards
Florian
OTRS 2025 SILVER (Prod)
OTRS 2025 auf Debian 12 (Test)
Znuny 7.x latest version testing auf Debian 12

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: How to use S/MIME and PGP Keys

Post by jojo »

Did you read the admin manual (http://doc.otrs.org). Also for using S/Mime and PGP a deeper level of linux knowledge is needed.
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
zin
Znuny newbie
Posts: 15
Joined: 16 Sep 2016, 06:50
Znuny Version: 5.0.x

Re: How to use S/MIME and PGP Keys

Post by zin »

Hi,
May i call you Florian?
I tried PGP keys generated and used in otrs sysConfig then sent mail to customer.
Customer receive Encrypted mail with PGP Key but i don't know how to Decrypte to read the mail.

PGP keys generated in server is using the command: gpg --gen-key
yours truly
zin
Znuny newbie
Posts: 15
Joined: 16 Sep 2016, 06:50
Znuny Version: 5.0.x

Re: How to use S/MIME and PGP Keys

Post by zin »

jojo wrote:Did you read the admin manual (http://doc.otrs.org). Also for using S/Mime and PGP a deeper level of linux knowledge is needed.

Hi JoJo,

Thanks for your suggestion and i followed the instructions by otrs manaul.
But i am confused which one is more secure and easy to use.
yours truly
zin
Znuny newbie
Posts: 15
Joined: 16 Sep 2016, 06:50
Znuny Version: 5.0.x

Re: How to use S/MIME and PGP Keys

Post by zin »

wurzel wrote:Hi,

http://otrs.github.io/doc/manual/admin/ ... area-smime

if you have no (or little) experience I would strongly recommend to get professional support. Encryption is not easy and needs to be setup properly.

S/MIME and PGP is 99% configuration with openSSL and backend linux configuration. OTRS "uses" this config, only.


Regards
Florian


Hi,
May i call you Florian?
I tried PGP keys generated and used in otrs sysConfig then sent mail to customer.
Customer receive Encrypted mail with PGP Key but i don't know how to Decrypte to read the mail.

PGP keys generated in server is using the command: gpg --gen-key
yours truly
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: How to use S/MIME and PGP Keys

Post by RStraub »

You won't be able to read the email if you only created one certificate. How this (very very roughly) works is:

- A user or firm (let's call them Alice!) has a private / public pair and sends you the public key
- You (let's call you Bob!) created a private / public pair and send the public one to the user

To talk encrypted with Alice, you will now encrypt Emails with THEIR public key. Alice then can use THEIR private key to decrypt them.

Vica versa, if Alice want's to talk to you, Alice will encrypt the mail with YOUR public key, and you can then decrypt it with YOUR private key.
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
zin
Znuny newbie
Posts: 15
Joined: 16 Sep 2016, 06:50
Znuny Version: 5.0.x

Re: How to use S/MIME and PGP Keys

Post by zin »

RStraub wrote:You won't be able to read the email if you only created one certificate. How this (very very roughly) works is:

- A user or firm (let's call them Alice!) has a private / public pair and sends you the public key
- You (let's call you Bob!) created a private / public pair and send the public one to the user

To talk encrypted with Alice, you will now encrypt Emails with THEIR public key. Alice then can use THEIR private key to decrypt them.

Vica versa, if Alice want's to talk to you, Alice will encrypt the mail with YOUR public key, and you can then decrypt it with YOUR private key.


Thanks for your reply.
Obviously,it is very good explanation.
Please help me out this.
I configured, OTRS admin uses PGP key generated(public key) is upload and OTRS customer upload that(same)public key on the same sever.
Is it right?or wrong?
Or have OTRS admin and OTRS customer separate private keys?If so,how to get OTRS customer private and public keys.
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: How to use S/MIME and PGP Keys

Post by RStraub »

Well, as for OTRS, you will need to upload it's private key (but never send the private one out).
Then send the public one to the customer who wants to send you encrypted mails.

Likewise you will need the public key from the customer and upload that one to OTRS.

If you want to create a second key pair, try this command on a linux server:

Code: Select all

ssh-keygen -b 4096
This should create you two files: ~/.ssh/id_rsa.pub and ~/.ssh/id_rsa

The key without file-extension is your private key.
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
zin
Znuny newbie
Posts: 15
Joined: 16 Sep 2016, 06:50
Znuny Version: 5.0.x

Re: How to use S/MIME and PGP Keys

Post by zin »

RStraub wrote:Well, as for OTRS, you will need to upload it's private key (but never send the private one out).
Then send the public one to the customer who wants to send you encrypted mails.

Likewise you will need the public key from the customer and upload that one to OTRS.

If you want to create a second key pair, try this command on a linux server:

Code: Select all

ssh-keygen -b 4096
This should create you two files: ~/.ssh/id_rsa.pub and ~/.ssh/id_rsa

The key without file-extension is your private key.



I can't add another key pair in otrs. :( :( :(

I added PGP private key in OTRS admin and public key in OTRS customer.
Please see the following figures.
I receive encrypt email sent from OTRS but i don't the step how to read the email(I mean decrypt email).
The other issues is OTRS receive ticket sent from email is not encrypt.
You do not have the required permissions to view the files attached to this post.
yours truly
zin
Znuny newbie
Posts: 15
Joined: 16 Sep 2016, 06:50
Znuny Version: 5.0.x

Re: How to use S/MIME and PGP Keys

Post by zin »

zin wrote:
RStraub wrote:Well, as for OTRS, you will need to upload it's private key (but never send the private one out).
Then send the public one to the customer who wants to send you encrypted mails.

Likewise you will need the public key from the customer and upload that one to OTRS.

If you want to create a second key pair, try this command on a linux server:

Code: Select all

ssh-keygen -b 4096
This should create you two files: ~/.ssh/id_rsa.pub and ~/.ssh/id_rsa

The key without file-extension is your private key.



I can't add another key pair in otrs. :( :( :(

I added PGP private key in OTRS admin and public key in OTRS customer.
Please see the following figures.
I receive encrypt email sent from OTRS but i don't the step how to read the email(I mean decrypt email).
The other issues is OTRS receive ticket sent from email is not encrypt.




I followed the steps of "Secure Email with PGP" contents in otrs admin book.
what's wrong with my setting. :?
I am confused gmail setting or should i use other mail client?
yours truly
wurzel
Znuny guru
Posts: 3273
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: How to use S/MIME and PGP Keys

Post by wurzel »

Hi,

the screenshot shows OTRS Business Solution Skin. Why not ask xxx?

Flo
OTRS 2025 SILVER (Prod)
OTRS 2025 auf Debian 12 (Test)
Znuny 7.x latest version testing auf Debian 12

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
zin
Znuny newbie
Posts: 15
Joined: 16 Sep 2016, 06:50
Znuny Version: 5.0.x

Re: How to use S/MIME and PGP Keys

Post by zin »

wurzel wrote:Hi,

the screenshot shows OTRS Business Solution Skin. Why not ask xxx?

Flo


Sorry for being late reply.
I used managed otrs site for testing new features and will expire within 30 days.
yours truly
root
Administrator
Posts: 4253
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: How to use S/MIME and PGP Keys

Post by root »

zin wrote: I used managed otrs site for testing new features and will expire within 30 days.
You should always test the same system/version you'll use later and can afford. Or do you know all differences?
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
zin
Znuny newbie
Posts: 15
Joined: 16 Sep 2016, 06:50
Znuny Version: 5.0.x

Re: How to use S/MIME and PGP Keys

Post by zin »

root wrote:
zin wrote: I used managed otrs site for testing new features and will expire within 30 days.
You should always test the same system/version you'll use later and can afford. Or do you know all differences?



Hi Roy,

Thanks for your suggestion.
yours truly
zin
Znuny newbie
Posts: 15
Joined: 16 Sep 2016, 06:50
Znuny Version: 5.0.x

Re: How to use S/MIME and PGP Keys

Post by zin »

zin wrote:
root wrote:
zin wrote: I used managed otrs site for testing new features and will expire within 30 days.
You should always test the same system/version you'll use later and can afford. Or do you know all differences?



Hi Roy,

Thanks for your suggestion.



Why not crypt on?
Do i need to more configures and please light me up how to do.
You do not have the required permissions to view the files attached to this post.
yours truly
zin
Znuny newbie
Posts: 15
Joined: 16 Sep 2016, 06:50
Znuny Version: 5.0.x

Re: How to use S/MIME and PGP Keys

Post by zin »

It is not OTRS 5s
it is just used my testing OTRS 5.0.14
yours truly
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: How to use S/MIME and PGP Keys

Post by jojo »

As RStraub wrote:
RStraub wrote:You won't be able to read the email if you only created one certificate. How this (very very roughly) works is:

- A user or firm (let's call them Alice!) has a private / public pair and sends you the public key
- You (let's call you Bob!) created a private / public pair and send the public one to the user

To talk encrypted with Alice, you will now encrypt Emails with THEIR public key. Alice then can use THEIR private key to decrypt them.

Vica versa, if Alice want's to talk to you, Alice will encrypt the mail with YOUR public key, and you can then decrypt it with YOUR private key.
It seems that there is no private key for OTRS sender address available. You should contact your support contact at OTRS group for further support
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Locked