Affichage des articles dont le libellé est IIS. Afficher tous les articles
Affichage des articles dont le libellé est IIS. Afficher tous les articles

mardi 8 mars 2016

Commands you must know for ACMESharp

To complete the QuickStart from https://github.com/ebekker/ACMESharp/wiki/Quick-Start you may encounter some troubles. Among them:

----- I -----
The given key was not present in the dictionary

The solution is given by one of the issue.

This his formally an extract/copy from https://github.com/ebekker/ACMESharp/issues/101. From this link one can read:

There are a few bookkeeping cmdlets you can run to make sure the parameters to the Complete-* cmdlet are valid:
  • Get-ACMEIdentifier -- with no arguments, this cmdlet will list all the current Identifiers you have in the Vault; if you give it an Identifier reference (e.g. sequence number, Alias or GUID) it will give you more details about that particular Identifier
  • Get-ACMEChallengeHandlerProfile -ListChallengeTypes -- this will return the list of all Challenge Types that are currently registered and available in the current PS session, e.g. dns-01, http-01
  • Get-ACMEChallengeHandlerProfile -ListChallengeHandlers -- this will return the list of all Challenge Handlers that are currently registered and available in the current PS session, e.g. manual, iis, awsRoute53, awsS3
  • Get-ACMEChallengeHandlerProfile -GetChallengeHandler iis -ParametersOnly -- this form of the cmdlet will list details about the parameters that must or may be specified for the named Challenge Handler type
With these cmdlets you can ensure that the parameters to your Complete-ACMEChallenge call are all correct, for example that the Identifier reference is valid. If you run these and everything seems to be specified correctly and you still get this error, then there might be a bug somewhere and we can trace through that.

----- II -----
Stuck in the pending status

The solution can be found here: http://stackoverflow.com/questions/35302044/letsencrypt-acmesharp-client-challenge-in-pending-state-for-over-an-hour

In short using the following command : (Update-ACMEIdentifier dns1 -ChallengeType http-01).Challenges should exhibit that one among three of the challenges is valid.

----- III -----
Cannot export PKCS12; Issuer certificate hasn't been resolved

The solution can be found here: https://github.com/ebekker/ACMESharp/issues/87.

In short an Update-ACMECertificate certAlias solves the problem.

mercredi 29 octobre 2014

Setup Apache 2.2 for FastCgi handling of PHP on windows 7

Why ?
Because I used to setup PHP as an Apache Module. But, this morning, after starting my good old 2012 apache2.2 service, it says "mysql driver not installed"! I'm quite sure they were in 2012. In addition, IIS, on the same php.ini, says they are installed. So I try Apache with FastCGI as IIS does. Then, my drivers come back.
We here assume that
  • Apache 2.2 is yet installed.
  • php5 is in a directory named c:\php-5
From this assumptions:
Edit httpd.conf as follow:
    #LoadModule php5_module "c:/php-5/php5apache2_2.dll"
    #AddHandler application/x-httpd-php .php
    #PHPIniDir "C:/php-5"

    LoadModule fcgid_module modules/mod_fcgid.so
    FcgidInitialEnv PHPRC "c:/php-5"
    AddHandler fcgid-script .php
    FcgidWrapper "c:/php-5/php-cgi.exe" .php
And, to avoid HTTP 403 errors, don't forget ExecCGI in your directory configuration.
    
        Options Indexes FollowSymLinks ExecCGI
        #...
    
By the way, mod_fcgid.so can be found here (http://mir2.ovh.net/ftp.apache.org/dist//httpd/binaries/win32/)
I'm on a windows 7 64bits professional edition.