Questions tagged [credentials]

Credentials in information systems are widely used to control access to information or other resources. The classic combination of a user account number or name and a secret password is a widely-used example of IT credentials.

Credentials in cryptography establish the identity of a party to communication. Usually they take the form of machine-readable cryptographic keys and/or passwords. Cryptographic credentials may be self-issued, or issued by a trusted third party; in many cases the only criterion for issuance is unambiguous association of the credential with a specific, real individual or other entity. Cryptographic credentials are often designed to expire after a certain period, although this is not mandatory. An x.509 certificate is an example of a cryptographic credential.

An increasing number of information systems use other forms of documentation of credentials, such as Biometrics: fingerprints, voice recognition, retinal scans, Facial recognition systems1 , or X.509, Public key certificate, and so on.

2698 questions
35
votes
4 answers

Get current user's credentials object in Powershell without prompting

I have a Powershell script that is going to be run through an automation tool against multiple servers. It works fine on Windows machines, as the remote calls use the tool's service account without any need for prompting or exposing any credentials…
Beege
  • 365
  • 1
  • 3
  • 6
35
votes
10 answers

Invalid SSL certificate when pushing to Git server

I am running Gitblit on a Windows Server and am trying to push data to a repository from another machine on the network. I have used a SSL certificate (not self signed, but I think signed by my company? Not really sure how that works but Chrome, IE,…
Justin
  • 6,373
  • 9
  • 46
  • 72
34
votes
5 answers

Saving credentials for reuse by powershell and error ConvertTo-SecureString : Key not valid for use in specified state

I was doing something like described in this post to save credentials in a secured file so our automated process can use that to run remote PS scripts via…
mishkin
  • 5,932
  • 8
  • 45
  • 64
34
votes
21 answers

AWS DotNet SDK Error: Unable to get IAM security credentials from EC2 Instance Metadata Service

I use an example from here in order to retreive a secret from AWS SecretsManager in c# code. I have set credentials locally via AWS CLI, and I am able to retreive secret list using AWS CLI command "aws secretsmanager list-secrets". But c# console…
Robinson
  • 485
  • 1
  • 4
  • 8
32
votes
1 answer

Encrypting credentials in a WPF application

In a WPF application, I would like to provide the typical "Remember Me" option to remember credentials and use them automatically next time the application is launched. Using a one-way hash is clearly not an option, and while I can store credentials…
Gigi
  • 28,163
  • 29
  • 106
  • 188
30
votes
13 answers

Credentials do not work for "docker login"

Copy/pasting my username and password into the Docker Hub website works fine. The password is long, but does not contain shell-breaking symbols. Copy/pasting those same credentials into command-line docker login results in an incorrect username or…
Rjak
  • 2,097
  • 4
  • 19
  • 24
30
votes
3 answers

Using DefaultCredentials and DefaultNetworkCredentials

We're having a hard time figuring how these credentials objects work. In fact, they may not work how we expected them to work. Here's an explanation of the current issue. We got 2 servers that needs to talk with each other through webservices. The…
29
votes
1 answer

WCF NetTcpBinding Security - how does it work?

I am encountering the following problems trying to work through the quagmire of settings in WCF... I created a WCF client-server service using a NetTcp binding. I didn't make any changes to the security settings and when running on one machine it…
Remotec
  • 10,304
  • 25
  • 105
  • 147
29
votes
5 answers

Jenkins Subversion Error - E200015: No credential to try. Authentication failed

I've updated the Subversion plugin of jenkins to version 2.2 Now i get following error for repos which build the first time after the upgrade and for repos where something within an external changed. It works for all other builds as expected. I…
mikepenz
  • 12,708
  • 14
  • 77
  • 117
29
votes
2 answers

How to get access token from GoogleCredential?

I am trying to get an access token to use the Google Play Android Developer API, and I got this far using the Google API Java Client documentation example: HttpTransport HTTP_TRANSPORT = new NetHttpTransport(); JsonFactory JSON_FACTORY = new…
Kalina
  • 5,504
  • 16
  • 64
  • 101
28
votes
2 answers

save PSCredential in the file

I know I can save password to the file: Read-Host "Enter Password" -AsSecureString | ConvertFrom-SecureString | Out-File $passwordfile and read it from file: $secpasswd = (Get-Content $passwordfile | ConvertTo-SecureString) and then create…
Alexan
  • 8,165
  • 14
  • 74
  • 101
28
votes
1 answer

Domain credentials for a WebClient class don't work

I'm trying to get a HTML source of a website through C# code. When I access the site with Windows Authentication, the following code works: using (WebClient client = new WebClient()) { client.Credentials =…
agnieszka
  • 14,897
  • 30
  • 95
  • 113
28
votes
11 answers

How to avoid storing credentials to connect to Oracle with JDBC?

Is it possible to setup a JDBC connection to Oracle without providing username/password information in a configuration file (or in any other standard readable location)? Typically applications have a configuration file that contains setup parameters…
Hans Doggen
  • 1,796
  • 2
  • 16
  • 13
26
votes
9 answers

Protect string constant against reverse-engineering

I have android application that has hard coded (static string constants) credentials (user/pass) for sending emails via SMTP. The problem is that .dex file in .apk can be easily reverse-engineered and everybody can see my password. Is there a way…
D-Fox
  • 303
  • 1
  • 6
  • 8
26
votes
8 answers

How to force 'docker login' command to ignore existing credentials helper?

I have a system where I'm trying to run the docker logincommand, it is a headless linux system, but unfortunately only the Docker Credentials Helper docker-credential-secretservice is installed. This means that I get the following error: Error…
Christian Eriksson
  • 2,038
  • 2
  • 22
  • 28