Thanks for sharing the script.
However I am getting error when I am using same script to generate SSL certi.
PS F:\Solr\Downloads> .\GenerateSolrSSL.ps1
Generating JKS keystore…
The expression after & in a pipeline element produced an object that was not valid. It must result in a command
name, a script block, or a CommandInfo object.
At F:\Solr\Downloads\GenerateSolrSSL.ps1:50 char:3
+ & $keytool -genkeypair -alias solr-ssl -keyalg RSA -keysize 2048 -keypass $Keyst …
+ ~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : BadExpression
Sorry to heard that and the late reply!, mm looks like it doesn’t accept the & in line 50 any way probably you can remove it. if you see this is only for concatenate Write-Host with Get-Command probably check the path of your Java SDK ‘C:\Program Files\Java\jdk1.8.0_291\bin\keytool.exe’ this is for my machine but probably you have another one for yours.
Does this also work if a datasource is specified, but someone has unpublished/not published the datasource item? And does it work if using Glass in the controller rendering? (I’d expect that’s a yes.)
Yes!, it does. It works with Glass Mapper also. It validates the rendering item. If you have some logic that abstracts the rendering for you can add the filter at the class definition level.
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
0 replies on “Cap”
Thanks for sharing the script.
However I am getting error when I am using same script to generate SSL certi.
PS F:\Solr\Downloads> .\GenerateSolrSSL.ps1
Generating JKS keystore…
The expression after & in a pipeline element produced an object that was not valid. It must result in a command
name, a script block, or a CommandInfo object.
At F:\Solr\Downloads\GenerateSolrSSL.ps1:50 char:3
+ & $keytool -genkeypair -alias solr-ssl -keyalg RSA -keysize 2048 -keypass $Keyst …
+ ~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : BadExpression
PS F:\Solr\Downloads>
Sorry to heard that and the late reply!, mm looks like it doesn’t accept the & in line 50 any way probably you can remove it. if you see this is only for concatenate Write-Host with Get-Command probably check the path of your Java SDK ‘C:\Program Files\Java\jdk1.8.0_291\bin\keytool.exe’ this is for my machine but probably you have another one for yours.
Write-Host Generating JKS keystore…
& $keytool -genkeypair -alias solr-ssl -keyalg RSA -keysize 2048 -keypass $KeystorePassword -storepass $KeystorePassword -validity 9999 -keystore $KeystoreFile -ext SAN=DNS:$SolrDomain,IP:127.0.0.1 -dname “CN=$SolrDomain, OU=Enginnering, O=Verndale, L=Quito, ST=Pichincha, C=EC”
Really nice!
Does this also work if a datasource is specified, but someone has unpublished/not published the datasource item? And does it work if using Glass in the controller rendering? (I’d expect that’s a yes.)
Yes!, it does. It works with Glass Mapper also. It validates the rendering item. If you have some logic that abstracts the rendering for you can add the filter at the class definition level.
Super useful add-on for SC forms!
Super insightful!
Visual Studio does not recognize “GeoIpOptions” or “IpAddress.Parse”; are these in assemblies you haven’t mentioned?
Thanks for the observation. I updated the information. If you are working on SC 10 https://rmcdigital.com/sitecore/sitecore-geo-ip-services-sc-10-2/ I updated the implementation. Regards, Roberto Armas