question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No password for custom certificate

See original GitHub issue

Hi, I have a scenario where my custom certificate has no password. I am not able to use it, i guess because of the below code.

public bool IsDefined =>
      !string.IsNullOrEmpty(X509StoreName) && !string.IsNullOrEmpty(X509StoreLocation) ||
      !string.IsNullOrEmpty(X509CertificateFilePath) && !string.IsNullOrEmpty(X509CertificatePassword);

Any suggestion?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
StefHcommented, Feb 28, 2022
1reaction
StefHcommented, Feb 28, 2022

Hi @arihantjain0894,

Good point.

I think that a simple solution would be to change it to:

&& X509CertificatePassword != null;

But also I need to add some logic to detect empty pwd.

Which means that if you provide an empty string "" as X509CertificatePassword, this IsDefined will return true.

OR

I could remove the check for X509CertificatePassword here, But also I need to add some logic to detect empty pwd.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use a certificate without the password
Use the certificate to download files WITHOUT the need to know the password. Impossible. The password is used for encrypting the private ...
Read more >
Remove key file password - SSL/TLS
You cannot upload a custom certificate with a password-protected key file. The process for removing the password depends on your operating ...
Read more >
how to use a client certificate that doesn't have a password
I have a client certificate that is required to access a website I need to run Burp Suite Pro against but the certificate...
Read more >
Defining password for custom certificate
Yes, I'm currently using a hardcoded password (the certificate has no password whatsoever, yet it requests one).
Read more >
Remove passphrase from certificate key
Nginx does not support password protected certificate keys for SSL. If your keys are already password protected, you can remove them using the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found