|
- What is the purpose of the `self` parameter? Why is it needed?
For a language-agnostic consideration of the design decision, see What is the advantage of having this self pointer mandatory explicit? To close debugging questions where OP omitted a self parameter for a method and got a TypeError, use TypeError: method () takes 1 positional argument but 2 were given instead If OP omitted self in the body of the method and got a NameError, consider How can
- oop - Why do you need explicitly have the self argument in a Python . . .
By making the self reference explicit, you're free to refer to any object by that self reference Also, such a way of playing with classes at runtime is harder to do in the more static languages - not that's it's necessarily good or bad
- ssl - How to create a self-signed certificate for a domain name for . . .
I have tried creating a self-signed certificate as outlined in Create a Self-Signed Server Certificate in IIS 7, but this certificate only works locally Can this certificate be used for my purpose or will I have to create a self-signed certificate for my development subdomain?
- security - How do I create a self-signed certificate for code signing . . .
This creates a self-signed (-r) certificate, with an exportable private key (-pe) It's named "My CA", and should be put in the CA store for the current user We're using the SHA-256 algorithm The key is meant for signing (-sky) The private key should be stored in the MyCA pvk file, and the certificate in the MyCA cer file
- node. js - NPM self_signed_cert_in_chain - Stack Overflow
I've spent two days in node-gyp hell trying to figure out this self-signed cert in keychain issue I've had, and this is the answer that finally got everything working properly :)
- How can I generate a self-signed SSL certificate using OpenSSL?
The W3C's WebAppSec Working Group is starting to look at the issue See, for example, Proposal: Marking HTTP As Non-Secure How to create a self-signed certificate with OpenSSL The commands below and the configuration file create a self-signed certificate (it also shows you how to create a signing request)
- How can I create a self-signed certificate for localhost?
I followed the process to install a self-signed cert into IIS under Win7 But that creates the cert for "mymachinename", and I need one for "localhost"
- How to get Python requests to trust a self signed SSL certificate?
My python requests code does not accept the self-signed certificate but curl does It turns out python requests are very strict on the self-signed certificate It needs to be a root CA certificate In other words, Basic Constraints: CA:TRUE Key Usage: Digital Signature, Non Repudiation, Key Encipherment, Certificate Sign
|
|
|