Giter Site home page Giter Site logo

certsrv's People

Contributors

ma44in avatar magnuswatn avatar theballdredge avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

certsrv's Issues

certsrv.get_cert with attributes

Is there a way to add additional attributes to the cert request? For example, I frequently include subject alternate name (SAN) fields using the san:dns=dns.name[&dns=dns.name] format.

Client not authorised.

I'm adding the capability to talk to the MSCA to a script. The part that uses the Certsrv component causes an error.

I get:

File "/usr/lib/python2.7/dist-packages/requests/models.py", line 940, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://pki.example.com/certsrv/certfnsh.asp

When I look at the server weblogs, I see that requests that work correctly (from WebUI or other scripts) include the username in the weblog (so they're in the request), but requests from the certsrv component do not.

I am using Certsrv.get_cert(csr, "WebServer", encoding="b64") -- after instantiating the object with the server, username and password.

I've tried using the examples, but they give the same error.

The user used for this has the ability to create, sign and receive the certs as this is what I use in the other scripts and the WebUI.

So - am I missing something?

Certsrv version 2.1.1.
Python version 2.7.16

Thanks,

Patrick

um, how to run that thing?

hi there,

it might be a stupid question, but how do i run that script to make means work?

i am not a dev.

Cannot specify root CA

on nonwindows systems, the library fails to submit requests to a private CA:

urllib2.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661)>

tried exporting SSL_CERT_FILE, but that appears to only work for requests, not urllib2.

would it be possible to add an optional parameter to specify the CA root?

Example usage

I have noticed that you are using CertificateSigningRequestBuilder.
How can i add a public key for the certificate signing request builder object ?

return internal ID of cert as well

When a cert is created, the internal certificate ID is used but not returned to the original caller.
Would it be possible to add this information?
regards

Proxy support

I am using certsrv as part of my acmeproxy project and like it a lot. One of my users is requesting http/socks5 proxy support and I think it would be beneficial for certsrv as well.

I already had a look into the code; the implementation seems to be pretty straight forward. Will file a PR in the upcoming hours and hope you are ok with it.

Best regards
G.

Unable to login to ADCS

I am unable to login into ADCS server using

get_cert('adcs.example.test', pem_req, server, username, password)

I always get 401, Am I missing something here ?

Improvement Request: Enable use of personal certificates

Hello,
I used certsrv to develop a Lemur-Issuer Plugin (Lemur.
For authorization, we use personal certificates.
I succeeded to connect with our AD by "patching" the local .py file like this:
_def _set_credentials(self, username, password):
if self.auth_method == "ntlm":
from requests_ntlm import HttpNtlmAuth

        self.session.auth = HttpNtlmAuth(username, password)
    else:
         # self.session.auth = (username, password)
         self.session.cert='/home/lemur/.lemur/client.cert'_

To cleanly improve this new parameters like "cert" nad "cert_path" are needed and a third path in the if :
def _set_credentials(self, username, password):
if self.auth_method == "ntlm":
from requests_ntlm import HttpNtlmAuth

        self.session.auth = HttpNtlmAuth(username, password)
   elif  self.auth_method == "cert":
        self.session.cert=certpath
   else:
        self.session.auth = (username, password)

I would be very happy, if you could integrate this feature in the release.
I have no experience with adding features to github projects but if you could give me directions, I could enter the changes myself.

Thank you
regards
ferdinand

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.