Results 1 to 7 of 7

Thread: Importing a VPM connection in NetworkManager - HOW?

  1. #1

    Default Importing a VPM connection in NetworkManager - HOW?

    Hi,

    Been hunting, but can't find an answer.

    What, or where do I get/find the "Private Key Password"
    See screenshot below (I hope)

    NetworkManager Connections


    Relevant Info (I hope!)
    Leap 15.1
    KDE Plasma 5.12.8
    Applet - whatever is at the end of: System Settings | Network Connections | Add a new connection | Scroll down to "Other" and "Import VPN connection"
    openSUSE Leap 15.1; KDE Plasma 5.12.8;

  2. #2
    Join Date
    Sep 2012
    Posts
    5,145

    Default Re: Importing a VPM connection in NetworkManager - HOW?

    Private.key identifies you to OpenVPN server, so you are expected to know its password. You should ask whoever you got the private.key from (probably, server administrator). Good chances are, it is not password protected at all - as far as I know, OpenVPN does not have option (and hence configuration directive) to provide private key password.

  3. #3
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,308
    Blog Entries
    2

    Default Re: Importing a VPM connection in NetworkManager - HOW?

    A screenshot can be helpful to know what you did (and you didn't succeed in posting a screenshot), from your description we can't know if the private key is the secret aka password, or fi your key is encrypted with a password.

    Or,
    Describe how you're entering the password or key,
    Are you opening the file and pasting the file contents into a field?
    Or, are you entering a path to a file containing the password or key?

    And,
    Where did you get the file or text?
    Were you told what the text is, or did you receive a file from someone?

    ***********************

    To post a screenshot,
    You first need to upload your file to a location anywhere on the Internet where the file can be publicly viewed.
    Some common places people use are
    Personal storage like Google Pictures, Dropbox, Google Drive, etc.
    If you start a wiki (see my message signature, this is easy to do), when you login to your Wiki page you will find a clickable link in the left navigation pane where you can upload your screenshot to an openSUSE server
    pastebin like http://pastebin.com or http://paste.opensuse.org/

    After you upload your screenshot,
    In your Forum post you can click on the "Insert Image" button and paste the URL to your picture and save.

    HTH,
    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  4. #4

    Default Re: Importing a VPM connection in NetworkManager - HOW?

    Thank you for the advice, let me try again.

    I can connect using the command line using the configuration file provided by the VPN host. This confirms my knowledge of a username & password:

    Code:
    # openvpn --config myConfigFile.ovpn
    Tue Aug 20 08:06:39 2019 OpenVPN 2.4.3 x86_64-suse-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Jun 20 2017
    Tue Aug 20 08:06:39 2019 library versions: OpenSSL 1.1.0i-fips  14 Aug 2018, LZO 2.10
    Enter Auth Username: myUsername
    Enter Auth Password: myPassword
    
    ... omitted for brevity ...
    
    Tue Aug 20 08:07:20 2019 Initialization Sequence Completed
    However, when I try to import my .ovpn file into the KDE GUI, I am left with one field that I don't understand?
    (at this point I would like to show you an image - I have tried the instructions you [tsu2] have given me - again?). Let me try once more...

    1. Go to http://paste.opensuse.org/
    2. Click on "Image" - top right of page
    3. Click on "Browse" and select my image from local machine.
    4. Click "Create". Page redraws with my image and offers a URL in the "info" box.
    5. Copy the url to clipboard and return to this text.
    6. Click on the "Insert Image" button (picture of tree) and paste url into field provided and all I get is this:
    HTML Code:
    [IMG]https://paste.opensuse.org/48645295[/IMG]
    so I have (again) put the url in this message instead (at least it can now be seen if you Right Click & Open Tab)


    my screen shot showing all fields (minus private key password) populated via the "Import File" option

    If I leave the "Private Key Password" field blank, when I try and use the connection (open "Network Connections" in the Task Bar pop-up) it throws this dialogue at me?

    VPN Secrets dialogue (right Click & Open to view...)

    Regards, Martin
    openSUSE Leap 15.1; KDE Plasma 5.12.8;

  5. #5

    Default Re: Importing a VPM connection in NetworkManager - HOW?

    Ah.... Its come back to me! See: How-do-I-insert-an-in-line-image-in-a-forum-post

    Here are the screen shots:




    And...


    openSUSE Leap 15.1; KDE Plasma 5.12.8;

  6. #6
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,308
    Blog Entries
    2

    Default Re: Importing a VPM connection in NetworkManager - HOW?

    When certificates are exchanged, they are often encrypted and use a specific format like pem
    But, your certificates seem to be "crt" which are likely not encrypted.
    If that's the case, then simply leave the fields blank and click "OK"

    EDIT:
    Actually, as I'm looking at your screenshot which looks different than I remember,
    It looks like there may that this private key is something different, that identifies the User.
    If no password came with the file, then simply click "OK" Otherwise you should contact the person who issued you the private key.

    Or,
    Try without the private key if you have a User certificate which is usually how my VPNs are set up...
    You may be prompted for the private key password only because you specified a private key.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  7. #7
    Join Date
    Sep 2012
    Posts
    5,145

    Default Re: Importing a VPM connection in NetworkManager - HOW?

    Link to screenshot was present in your original post and working just fine.

    Once more explicit question - did you receive any certificates from you VPN server admin? We still do not know whether reference to certificates comes from OpenVPN profile or it is just what plasma applet defaults to, in which case simply change connection type to use plain user/password without certificates.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •