我有4个证书,我从CA(SSL)收到:根CA证书 - 123.crt中级CA证书 - 456.crt中级CA证书 - 789.crt您的PositiveSSL证书 - 654.crt我也生成了circuit.pem - 私钥和csr.pem trhough我得到了这些证书.现在,我想使用这些证书上传到IAM
aws iam upload-server-certificate --server-certificate-name certificate_object_name --certificate-body file://public_key_certificate_file --private-key file://privatekey.pem --certificate-chain file://certificate_chain_file
Run Code Online (Sandbox Code Playgroud)
http://docs.aws.amazon.com/IAM/latest/UserGuide/InstallCert.html
但我无法衡量哪个是我的服务器证书,以及如何上传我的所有证书.请帮我完成以上命令,以获得我的上述证明.
我试过了 :
aws iam upload-server-certificate --server-certificate-name MyServerCertificate --certificate-body file://www_advisorcircuit_com.crt --private-key file://circuit.pem --certificate-chain file://COMODORSAAddTrustCA.crt
Run Code Online (Sandbox Code Playgroud)
我收到此错误:
调用UploadServerCertificate操作时发生客户端错误(InvalidClientTokenId):请求中包含的安全令牌无效.
我在注册表单上触发 ajax 调用,其中我正在检查用户输入的电子邮件 ID 是否已被使用。阿贾克斯功能:
<script>
$( "#becomesignup" ).submit(function( event ) {
$.ajax({
url : 'login', // Your Servlet mapping or JSP(not suggested)
data : {"email":$("#becomeemail").val()},
type : 'GET',
dataType : 'html', // Returns HTML as plain text; included script tags are evaluated when inserted in the DOM.
success : function(response) {
if(response == "true"){
$('#emailerrorbecome').slideDown();
$('#become-submit').prop('disabled', true);
event.preventDefault();
}else{
$('#emailerrorbecome').slideUp();
$('#become-submit').prop('disabled', false);
}
$('.black-screen').hide();
},
error : function(request, textStatus, errorThrown) {
alert(errorThrown);
}
});
});
</script>
Run Code Online (Sandbox Code Playgroud)
在上面的 ajax 函数中,如果响应为真,则电子邮件 …
我试图通过"##"分隔符拆分此字符串.
var historycookie = "8.4707417,77.0463719:Sector 14:Gurgaon##28.3952729,77.3238274:Sector 15:Faridabad";
var history = historycookie.split("##");
alert(history.length);alert(history[0])Run Code Online (Sandbox Code Playgroud)
该history.length警报是给我造成为6理想,但它应该是2,history[0]警惕是给不确定的.请帮助我,因为我无法理解为什么会发生这种情况.
我有字符串日期:
"01/15/2015 12:00 AM"
Run Code Online (Sandbox Code Playgroud)
我希望"dd/MM/yyyy' 'HH:mm:ss"格式化一个日期对象.我怎样才能做到这一点?
我试过了:
String datetime1 ="01/15/2015 12:00 AM"
DateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy HH:mm a");
Date datepicker1 = dateFormat.parse(datetime1);
Run Code Online (Sandbox Code Playgroud)
但这datepicker是2016年的约会.我不知道为什么会这样.
我正在使用react和webpack创建一个渐进的Web应用程序.我已成功配置所有内容并能够开始开发.现在,我有许多辅助函数,如:
function getCookie(name) {
var start = document.cookie.indexOf(name + "=");
var len = start + name.length + 1;
if ((!start) && (name != document.cookie.substring(0, name.length))) {
return null;
}
if (start == -1) return null;
var end = document.cookie.indexOf(';', len);
if (end == -1) end = document.cookie.length;
return unescape(document.cookie.substring(len, end));
}
Run Code Online (Sandbox Code Playgroud)
所以,为此我创建了另一个js文件:helper.jsx.现在我的helper.js包含上面的函数.现在我想在另一个反应组件中使用上述函数.
我在我的组件中做了一个要求:
var helper = require("helper");
Run Code Online (Sandbox Code Playgroud)
并尝试使用以下方法调用该函数:
helper.getCookie('user');
Run Code Online (Sandbox Code Playgroud)
哪个给了我helper.getCookie不是一个定义的.请告诉我如何创建一个帮助器js并在我的react组件中使用helper js的功能.
我正在实施通知。我已经将整个后端与前端集成了。
我的通知 HTML 为:
<span id="notification_count" style="display: none"></span>
<a href="#" id="notificationLink"><img alt="" src="assets/img/notification-icon.jpg"></a>
<div id="notificationContainer">
<div id="notificationTitle">Notifications</div>
<div id="notificationsBody">
<table style="text-align: center;">
<tr>
<a href="www.google.com">123</a>
</tr>
<hr>
<tr>
<a href="#">123</a>
</tr>
<hr>
<tr>
<a href="#">123</a>
</tr>
<hr>
<tr>
<a href="#">123</a>
</tr>
<hr>
<tr>
<a href="#">123</a>
</tr>
<hr>
<tr>
<a href="#">123</a>
</tr>
<hr>
</table>
</div>
<div id="notificationFooter"></div>
</div>
Run Code Online (Sandbox Code Playgroud)
和CSS:
#nav{list-style:none;margin: 0px;padding: 0px;}
#nav li {
float: left;
margin-right: 20px;
font-size: 14px;
font-weight:bold;
}
#nav li a{color:#333333;text-decoration:none}
#nav li a:hover{color:#006699;text-decoration:none}
#notification_li
{ …Run Code Online (Sandbox Code Playgroud)